Interface | Description |
---|---|
CurrentSensorCallbackListener |
Implement this callback listener to be notified when the
CurrentSensor updates its value |
MotionSensorCallbackListener |
Implement this protocol to be notified when the MotionSensor updates its value
|
RGBLightCallbackListener |
Implement this listener to be notified when the
RGBLight updates its value |
ServiceCallbackListener |
Implement this listener to be notified when a service (typically a sensor of some kind) sends an updated value.
|
TiltSensorCallbackListener |
Implement this listener to be notified when the TiltSensor updates its value
|
VoltageSensorCallbackListener |
Implement this callback listener to be notified when the
VoltageSensor updates its value |
Class | Description |
---|---|
CurrentSensor | |
GenericService |
The SDK will create instances of this class for IOs with an unknown IOType.
|
LegoService |
A LegoService represent an IO of some kind, for example a motor or sensor.
|
LegoServiceFactory | |
MotionSensor |
This service provides readings from an motion sensor (aka.
|
Motor | |
PiezoTonePlayer | |
RGBLight |
This service allows for setting the colour of the RGB light on the device
|
TiltSensor |
This service provides readings from a tilt sensor.
|
TiltSensor.TiltSensorAngle | |
TiltSensor.TiltSensorCrash | |
VoltageSensor |
Enum | Description |
---|---|
MotionSensor.MotionSensorMode |
Supported modes for the motion sensor
|
Motor.MotorDirection |
The direction of a motor
|
PiezoTonePlayer.PiezoTonePlayerNote |
Tones that can be played using the PiezoTonePlayer
|
RGBLight.RGBLightMode | |
TiltSensor.TiltSensorDirection |
Direction of tilt sensor
|
TiltSensor.TiltSensorMode |
Tilt sensor mode
|