Skip to content

Commit 87ec0a2

Browse files
hwillemenlaurensvalk
authored andcommitted
pybricks.iodevices.PUPDevice: Add more devices.
Added: - non-uart DCMotors (Medium and Train) - non-uart Light - SPIKE 3x3 Color Matrix - SPIKE Small Angular Motor
1 parent b40c398 commit 87ec0a2

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

examples/pup/iodevices_pupdevice/port_info.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,14 @@
33
from uerrno import ENODEV
44

55
# 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
68
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
712
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
914
37: "BOOST Color Distance Sensor",
1015
38: "BOOST Interactive Motor",
1116
46: "Technic Large Motor",
@@ -15,6 +20,8 @@
1520
61: "SPIKE Color Sensor",
1621
62: "SPIKE Ultrasonic Sensor",
1722
63: "SPIKE Force Sensor",
23+
64: "SPIKE 3x3 Color Light Matrix",
24+
65: "SPIKE Small Angular Motor",
1825
75: "Technic Medium Angular Motor",
1926
76: "Technic Large Angular Motor",
2027
}

0 commit comments

Comments
 (0)