@@ -76,27 +76,35 @@ def HubInit(mounted_top=Axis.Z, mounted_front=Axis.X):
7676# 2: Diagnose connected devices
7777# -------------------------------------------------------------------
7878# Dictionary of device identifiers along with their name.
79- # Also check https://github.com/pybricks/technical-info/blob/master/assigned-numbers.md#io-device-type-ids
80- # for retired/internal
8179device_names = {
82- 1 : "Wedo 2.0 Medium Motor" , # DCMotor, analog ID
83- 2 : "PUP Train Motor" , #DCMotor, analog ID
84- 8 : "PUP Light" , #Light, analog ID
85- 34 : "Wedo 2.0 Tilt Sensor" ,
86- 35 : "Wedo 2.0 Infrared Sensor" , # aka WeDo 2.0 Motion Sensor
87- 37 : "BOOST Color Distance Sensor" ,
80+ # pybricks.pupdevices. DCMotor
81+ 1 : "Wedo 2.0 Medium Motor" ,
82+ 2 : "Powered Up Train Motor" ,
83+ # pybricks.pupdevices.Light
84+ 8 : "Powered Up Light" ,
85+ # pybricks.pupdevices.Motor
8886 38 : "BOOST Interactive Motor" ,
8987 46 : "Technic Large Motor" ,
9088 47 : "Technic Extra Large Motor" ,
9189 48 : "SPIKE Medium Angular Motor" ,
9290 49 : "SPIKE Large Angular Motor" ,
91+ 65 : "SPIKE Small Angular Motor" ,
92+ 75 : "Technic Medium Angular Motor" ,
93+ 76 : "Technic Large Angular Motor" ,
94+ # pybricks.pupdevices.TiltSensor
95+ 34 : "Wedo 2.0 Tilt Sensor" ,
96+ # pybricks.pupdevices.InfraredSensor
97+ 35 : "Wedo 2.0 Infrared Motion Sensor" ,
98+ # pybricks.pupdevices.ColorDistanceSensor
99+ 37 : "BOOST Color Distance Sensor" ,
100+ # pybricks.pupdevices.ColorSensor
93101 61 : "SPIKE Color Sensor" ,
102+ # pybricks.pupdevices.UltrasonicSensor
94103 62 : "SPIKE Ultrasonic Sensor" ,
104+ # pybricks.pupdevices.ForceSensor
95105 63 : "SPIKE Force Sensor" ,
96- 64 : "SPIKE 3x3 Color Light Matrix" ,
97- 65 : "SPIKE Small Angular Motor" ,
98- 75 : "Technic Medium Angular Motor" ,
99- 76 : "Technic Large Angular Motor" ,
106+ # pybricks.pupdevices.ColorLightMatrix
107+ 64 : "SPIKE 3x3 Color Light Matrix" ,
100108}
101109
102110def ConnectToDevice (port ):
0 commit comments