We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c81ea8 commit 8e98be2Copy full SHA for 8e98be2
ports/raspberrypi/boards/pimoroni_servo2040/pins.c
@@ -21,6 +21,7 @@ STATIC const mp_rom_map_elem_t board_module_globals_table[] = {
21
{ MP_ROM_QSTR(MP_QSTR_SERVO_16), MP_ROM_PTR(&pin_GPIO15) },
22
{ MP_ROM_QSTR(MP_QSTR_SERVO_17), MP_ROM_PTR(&pin_GPIO16) },
23
{ MP_ROM_QSTR(MP_QSTR_SERVO_18), MP_ROM_PTR(&pin_GPIO17) },
24
+ { MP_ROM_QSTR(MP_QSTR_NUM_SERVOS), MP_ROM_INT(18) },
25
26
{ MP_ROM_QSTR(MP_QSTR_LED_DAT), MP_ROM_PTR(&pin_GPIO18) },
27
{ MP_ROM_QSTR(MP_QSTR_NUM_LEDS), MP_ROM_INT(6) },
@@ -60,6 +61,7 @@ STATIC const mp_rom_map_elem_t board_module_globals_table[] = {
60
61
{ MP_ROM_QSTR(MP_QSTR_SENSOR_6_ADDR), MP_ROM_INT(0b101) },
62
{ MP_ROM_QSTR(MP_QSTR_VOLTAGE_SENSE_ADDR), MP_ROM_INT(0b110) },
63
{ MP_ROM_QSTR(MP_QSTR_CURRENT_SENSE_ADDR), MP_ROM_INT(0b111) },
64
+ { MP_ROM_QSTR(MP_QSTR_NUM_SENSORS), MP_ROM_INT(6) },
65
66
{ MP_ROM_QSTR(MP_QSTR_I2C), MP_ROM_PTR(&board_i2c_obj) },
67
{ MP_ROM_QSTR(MP_QSTR_STEMMA_I2C), MP_ROM_PTR(&board_i2c_obj) },
0 commit comments