extmod/pbdevice: add SPIKE Color Sensor modes
@@ -133,4 +133,18 @@ enum {
PBIO_IODEV_MODE_PUP_COLOR_DISTANCE_SENSOR__CALIB = 10, // ?? 8x int16_t
};
+// LEGO SPIKE Color Sensor
+enum {
+ PBIO_IODEV_MODE_PUP_COLOR_SENSOR__COLOR = 0, // read 1x int8_t
+ PBIO_IODEV_MODE_PUP_COLOR_SENSOR__REFLT = 1, // read 1x int8_t
+ PBIO_IODEV_MODE_PUP_COLOR_SENSOR__AMBI = 2, // read 1x int8_t
+ PBIO_IODEV_MODE_PUP_COLOR_SENSOR__LIGHT = 3, // writ 3x int8_t
+ PBIO_IODEV_MODE_PUP_COLOR_SENSOR__RREFL = 4, // read 2x int16_t
+ PBIO_IODEV_MODE_PUP_COLOR_SENSOR__RGB_I = 5, // read 4x int16_t
+ PBIO_IODEV_MODE_PUP_COLOR_SENSOR__HSV = 6, // read 3x int16_t
+ PBIO_IODEV_MODE_PUP_COLOR_SENSOR__SHSV = 7, // read 4x int16_t
+ PBIO_IODEV_MODE_PUP_COLOR_SENSOR__DEBUG = 8, // ?? 2x int16_t
+ PBIO_IODEV_MODE_PUP_COLOR_SENSOR__CALIB = 9, // ?? 7x int16_t
+};
+
#endif // _PBDEVICE_H_
