lpf2.device_type

LPF2 device-type identifiers (LWP IOTypeID).

Values returned by lpf2.port.getDeviceType() and matched against by the device factories.

Attributes

COLOR_DISTANCE_SENSOR

Boost color & distance sensor.

CURRENT_SENSOR

Hub current sensor.

DUPLO_TRAIN_BASE_COLOR_SENSOR

Duplo train base colour sensor.

DUPLO_TRAIN_BASE_MOTOR

Duplo train base motor.

DUPLO_TRAIN_BASE_SPEAKER

Duplo train base speaker.

DUPLO_TRAIN_BASE_SPEEDOMETER

Duplo train base speedometer.

HUB_LED

Hub built-in RGB LED.

LIGHT

Powered-Up light.

MARIO_HUB_BARCODE_SENSOR

Mario hub barcode sensor.

MARIO_HUB_GESTURE_SENSOR

Mario hub gesture sensor.

MARIO_HUB_PANT_SENSOR

Mario hub pants sensor.

MEDIUM_LINEAR_MOTOR

Boost medium linear motor.

MOTION_SENSOR

WeDo motion sensor.

MOVE_HUB_MEDIUM_LINEAR_MOTOR

Boost Move Hub built-in medium linear motor.

MOVE_HUB_TILT_SENSOR

Boost Move Hub built-in tilt sensor.

PIEZO_BUZZER

Piezo buzzer.

REMOTE_CONTROL_BUTTON

Powered-Up remote control button pair.

REMOTE_CONTROL_RSSI

Powered-Up remote control RSSI sensor.

SIMPLE_MEDIUM_LINEAR_MOTOR

Simple medium linear motor (WeDo, Boost).

TECHNIC_COLOR_SENSOR

Technic colour sensor.

TECHNIC_DISTANCE_SENSOR

Technic distance sensor.

TECHNIC_FORCE_SENSOR

Technic force sensor.

TECHNIC_LARGE_ANGULAR_MOTOR

Technic Control+ large angular motor.

TECHNIC_LARGE_ANGULAR_MOTOR_GREY

Technic grey large angular motor.

TECHNIC_LARGE_LINEAR_MOTOR

Technic Control+ large linear motor.

TECHNIC_MEDIUM_ANGULAR_MOTOR

Technic Control+ medium angular motor.

TECHNIC_MEDIUM_ANGULAR_MOTOR_GREY

Technic grey medium angular motor.

TECHNIC_MEDIUM_HUB_ACCELEROMETER

Technic medium hub built-in accelerometer.

TECHNIC_MEDIUM_HUB_GEST_SENSOR

Technic medium hub built-in gesture sensor.

TECHNIC_MEDIUM_HUB_GYRO_SENSOR

Technic medium hub built-in gyroscope.

TECHNIC_MEDIUM_HUB_TEMPERATURE_SENSOR

Technic medium hub built-in temperature sensor.

TECHNIC_MEDIUM_HUB_TILT_SENSOR

Technic medium hub built-in tilt sensor.

TECHNIC_XLARGE_LINEAR_MOTOR

Technic Control+ XL linear motor.

TILT_SENSOR

WeDo tilt sensor.

TRAIN_MOTOR

Powered-Up train motor.

UNKNOWNDEVICE

No device / unrecognised type.

VOLTAGE_SENSOR

Hub voltage sensor.

Module Contents

lpf2.device_type.COLOR_DISTANCE_SENSOR: int = 37[source]

Boost color & distance sensor.

lpf2.device_type.CURRENT_SENSOR: int = 21[source]

Hub current sensor.

lpf2.device_type.DUPLO_TRAIN_BASE_COLOR_SENSOR: int = 43[source]

Duplo train base colour sensor.

lpf2.device_type.DUPLO_TRAIN_BASE_MOTOR: int = 41[source]

Duplo train base motor.

lpf2.device_type.DUPLO_TRAIN_BASE_SPEAKER: int = 42[source]

Duplo train base speaker.

lpf2.device_type.DUPLO_TRAIN_BASE_SPEEDOMETER: int = 44[source]

Duplo train base speedometer.

lpf2.device_type.HUB_LED: int = 23[source]

Hub built-in RGB LED.

lpf2.device_type.LIGHT: int = 8[source]

Powered-Up light.

lpf2.device_type.MARIO_HUB_BARCODE_SENSOR: int = 73[source]

Mario hub barcode sensor.

lpf2.device_type.MARIO_HUB_GESTURE_SENSOR: int = 71[source]

Mario hub gesture sensor.

lpf2.device_type.MARIO_HUB_PANT_SENSOR: int = 74[source]

Mario hub pants sensor.

lpf2.device_type.MEDIUM_LINEAR_MOTOR: int = 38[source]

Boost medium linear motor.

lpf2.device_type.MOTION_SENSOR: int = 35[source]

WeDo motion sensor.

lpf2.device_type.MOVE_HUB_MEDIUM_LINEAR_MOTOR: int = 39[source]

Boost Move Hub built-in medium linear motor.

lpf2.device_type.MOVE_HUB_TILT_SENSOR: int = 40[source]

Boost Move Hub built-in tilt sensor.

lpf2.device_type.PIEZO_BUZZER: int = 22[source]

Piezo buzzer.

lpf2.device_type.REMOTE_CONTROL_BUTTON: int = 55[source]

Powered-Up remote control button pair.

lpf2.device_type.REMOTE_CONTROL_RSSI: int = 56[source]

Powered-Up remote control RSSI sensor.

lpf2.device_type.SIMPLE_MEDIUM_LINEAR_MOTOR: int = 1[source]

Simple medium linear motor (WeDo, Boost).

lpf2.device_type.TECHNIC_COLOR_SENSOR: int = 61[source]

Technic colour sensor.

lpf2.device_type.TECHNIC_DISTANCE_SENSOR: int = 62[source]

Technic distance sensor.

lpf2.device_type.TECHNIC_FORCE_SENSOR: int = 63[source]

Technic force sensor.

lpf2.device_type.TECHNIC_LARGE_ANGULAR_MOTOR: int = 49[source]

Technic Control+ large angular motor.

lpf2.device_type.TECHNIC_LARGE_ANGULAR_MOTOR_GREY: int = 76[source]

Technic grey large angular motor.

lpf2.device_type.TECHNIC_LARGE_LINEAR_MOTOR: int = 46[source]

Technic Control+ large linear motor.

lpf2.device_type.TECHNIC_MEDIUM_ANGULAR_MOTOR: int = 48[source]

Technic Control+ medium angular motor.

lpf2.device_type.TECHNIC_MEDIUM_ANGULAR_MOTOR_GREY: int = 75[source]

Technic grey medium angular motor.

lpf2.device_type.TECHNIC_MEDIUM_HUB_ACCELEROMETER: int = 57[source]

Technic medium hub built-in accelerometer.

lpf2.device_type.TECHNIC_MEDIUM_HUB_GEST_SENSOR: int = 54[source]

Technic medium hub built-in gesture sensor.

lpf2.device_type.TECHNIC_MEDIUM_HUB_GYRO_SENSOR: int = 58[source]

Technic medium hub built-in gyroscope.

lpf2.device_type.TECHNIC_MEDIUM_HUB_TEMPERATURE_SENSOR: int = 60[source]

Technic medium hub built-in temperature sensor.

lpf2.device_type.TECHNIC_MEDIUM_HUB_TILT_SENSOR: int = 59[source]

Technic medium hub built-in tilt sensor.

lpf2.device_type.TECHNIC_XLARGE_LINEAR_MOTOR: int = 47[source]

Technic Control+ XL linear motor.

lpf2.device_type.TILT_SENSOR: int = 34[source]

WeDo tilt sensor.

lpf2.device_type.TRAIN_MOTOR: int = 2[source]

Powered-Up train motor.

lpf2.device_type.UNKNOWNDEVICE: int = 0[source]

No device / unrecognised type.

lpf2.device_type.VOLTAGE_SENSOR: int = 20[source]

Hub voltage sensor.