File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
ports/espressif/boards/m5stack_cardputer Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -71,12 +71,16 @@ static const mp_rom_map_elem_t board_module_globals_table[] = {
71
71
{ MP_ROM_QSTR (MP_QSTR_BUTTON ), MP_ROM_PTR (& pin_GPIO0 ) },
72
72
{ MP_ROM_QSTR (MP_QSTR_BOOT0 ), MP_ROM_PTR (& pin_GPIO0 ) },
73
73
74
+ // Battery
75
+ { MP_ROM_QSTR (MP_QSTR_BAT_ADC ), MP_ROM_PTR (& pin_GPIO10 ) },
76
+
74
77
// Other
75
78
{ MP_ROM_QSTR (MP_QSTR_I2C ), MP_ROM_PTR (& board_i2c_obj ) },
76
79
{ MP_ROM_QSTR (MP_QSTR_PORTA_I2C ), MP_ROM_PTR (& board_i2c_obj ) },
77
80
{ MP_ROM_QSTR (MP_QSTR_TFT_SPI ), MP_ROM_PTR (& board_spi_obj ) },
78
81
{ MP_ROM_QSTR (MP_QSTR_SD_SPI ), MP_ROM_PTR (& board_sd_spi_obj ) },
79
82
83
+
80
84
{ MP_ROM_QSTR (MP_QSTR_DISPLAY ), MP_ROM_PTR (& displays [0 ].display )}
81
85
};
82
86
MP_DEFINE_CONST_DICT (board_module_globals , board_module_globals_table );
You can’t perform that action at this time.
0 commit comments