DeviceType EnumerationLEGO Mindstorms EV3 API Documentation
For more information, please see the OnlineCodePlex project page and the OnlineGetting Started guide.

List of devices which can be recognized as input or output devices

Namespace: Lego.Ev3.Core
Assembly: Lego.Ev3.Desktop (in Lego.Ev3.Desktop.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

public enum DeviceType
Members

  Member nameValueDescription
NxtTouch1 NXT Touch sensor
NxtLight2 NXT Light sensor
NxtSound3 NXT Sound sensor
NxtColor4 NXT Color sensor
NxtUltrasonic5 NXT Ultrasonic sensor
NxtTemperature6 NXT Temperature sensor
LMotor7 Large motor
MMotor8 Medium motor
Touch16 EV3 Touch sensor
Color29 EV3 Color sensor
Ultrasonic30 EV3 Ultrasonic sensor
Gyroscope32 EV3 Gyroscope sensor
Infrared33 EV3 IR sensor
Initializing125 Sensor is initializing
Empty126 Port is empty
WrongPort127 Sensor is plugged into a motor port, or vice-versa
Unknown255 Unknown sensor/status
See Also