Added additional constants
@@ -203,6 +203,7 @@ STATIC const mp_map_elem_t servo2040_globals_table[] = {
{ MP_ROM_QSTR(MP_QSTR_SERVO_16), MP_ROM_INT(15) },
{ MP_ROM_QSTR(MP_QSTR_SERVO_17), MP_ROM_INT(16) },
{ MP_ROM_QSTR(MP_QSTR_SERVO_18), MP_ROM_INT(17) },
+ { MP_ROM_QSTR(MP_QSTR_NUM_SERVOS), MP_ROM_INT(18) },
{ MP_ROM_QSTR(MP_QSTR_LED_DAT), MP_ROM_INT(18) },
{ MP_ROM_QSTR(MP_QSTR_NUM_LEDS), MP_ROM_INT(6) },
{ MP_ROM_QSTR(MP_QSTR_INT), MP_ROM_INT(19) },
@@ -222,6 +223,7 @@ STATIC const mp_map_elem_t servo2040_globals_table[] = {
{ MP_ROM_QSTR(MP_QSTR_SENSOR_4_ADDR), MP_ROM_INT(0b011) },
{ MP_ROM_QSTR(MP_QSTR_SENSOR_5_ADDR), MP_ROM_INT(0b100) },
{ MP_ROM_QSTR(MP_QSTR_SENSOR_6_ADDR), MP_ROM_INT(0b101) },
+ { MP_ROM_QSTR(MP_QSTR_NUM_SENSORS), MP_ROM_INT(6) },
{ MP_ROM_QSTR(MP_QSTR_VOLTAGE_SENSE_ADDR), MP_ROM_INT(0b110) },
{ MP_ROM_QSTR(MP_QSTR_CURRENT_SENSE_ADDR), MP_ROM_INT(0b111) },
{ MP_ROM_QSTR(MP_QSTR_SHUNT_RESISTOR), MP_ROM_PTR(&servo2040_shunt_resistor) },
