|
3 | 3 | from uerrno import ENODEV |
4 | 4 |
|
5 | 5 | # Dictionary of device identifiers along with their name. |
| 6 | +# Also check https://github.com/pybricks/technical-info/blob/master/assigned-numbers.md#io-device-type-ids |
| 7 | +# for retired/internal |
6 | 8 | device_names = { |
| 9 | + 1: "Wedo 2.0 Medium Motor", #DCMotor, analog ID |
| 10 | + 2: "PUP Train Motor", #DCMotor, analog ID |
| 11 | + 8: "PUP Light", #Light, analog ID |
7 | 12 | 34: "Wedo 2.0 Tilt Sensor", |
8 | | - 35: "Wedo 2.0 Infrared Sensor", |
| 13 | + 35: "Wedo 2.0 Infrared Sensor", # aka WeDo 2.0 Motion Sensor |
9 | 14 | 37: "BOOST Color Distance Sensor", |
10 | 15 | 38: "BOOST Interactive Motor", |
11 | 16 | 46: "Technic Large Motor", |
|
15 | 20 | 61: "SPIKE Color Sensor", |
16 | 21 | 62: "SPIKE Ultrasonic Sensor", |
17 | 22 | 63: "SPIKE Force Sensor", |
| 23 | + 64: "SPIKE 3x3 Color Light Matrix", |
| 24 | + 65: "SPIKE Small Angular Motor", |
18 | 25 | 75: "Technic Medium Angular Motor", |
19 | 26 | 76: "Technic Large Angular Motor", |
20 | 27 | } |
|
0 commit comments