SensorType Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
All type of supported sensors
public enum SensorType
type SensorType =
Public Enum SensorType
- Inheritance
-
SensorType
Fields
ButtonOrTouchSensor | 5 | Button/touch sensor |
ColourAndDistanceSensor | 37 | Colour and distance sensor |
FutureLights1 | 9 | Future lights 1 |
FutureLights2 | 10 | Future lights 2 |
GeneralPwm | 4 | General PWM/third party |
MediumLinearMotor | 38 | Medium linear motor |
None | 0 | None |
SimpleLights | 8 | Simple lights |
SpikeEssential3x3ColorLightMatrix | 64 | SPIKE Essential 3x3 colour light matrix |
SpikeEssentialSmallAngularMotor | 65 | SPIKE Essential small angular motor |
SpikePrimeColorSensor | 61 | SPIKE Prime colour sensor |
SpikePrimeForceSensor | 63 | SPIKE Prime force sensor |
SpikePrimeLargeMotor | 49 | SPIKE Prime large motor |
SpikePrimeMediumMotor | 48 | SPIKE Prime medium motor |
SpikePrimeUltrasonicDistanceSensor | 62 | SPIKE Prime ultrasonic distance sensor |
SystemFutureActuator | 11 | System future actuator (train points) |
SystemMediumMotor | 1 | System medium motor |
SystemTrainMotor | 2 | System train motor |
SystemTurntableMotor | 3 | System turntable motor |
TechnicLargeMotor | 6 | Technic large motor (some have active ID) |
TechnicLargeMotorId | 46 | Technic large motor |
TechnicMediumAngularMotor | 75 | Technic medium motor |
TechnicMotor | 76 | Techni motor |
TechnicXLMotor | 7 | Technic XL motor (some have active ID) |
TechnicXLMotorId | 47 | Technic XL motor |
WeDoDistanceSensor | 35 | Wido motion sensor |
WeDoTiltSensor | 34 | WeDo tilt sensor |
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for