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[] = {
7171 { MP_ROM_QSTR (MP_QSTR_BUTTON ), MP_ROM_PTR (& pin_GPIO0 ) },
7272 { MP_ROM_QSTR (MP_QSTR_BOOT0 ), MP_ROM_PTR (& pin_GPIO0 ) },
7373
74+ // Battery
75+ { MP_ROM_QSTR (MP_QSTR_BAT_ADC ), MP_ROM_PTR (& pin_GPIO10 ) },
76+
7477 // Other
7578 { MP_ROM_QSTR (MP_QSTR_I2C ), MP_ROM_PTR (& board_i2c_obj ) },
7679 { MP_ROM_QSTR (MP_QSTR_PORTA_I2C ), MP_ROM_PTR (& board_i2c_obj ) },
7780 { MP_ROM_QSTR (MP_QSTR_TFT_SPI ), MP_ROM_PTR (& board_spi_obj ) },
7881 { MP_ROM_QSTR (MP_QSTR_SD_SPI ), MP_ROM_PTR (& board_sd_spi_obj ) },
7982
83+
8084 { MP_ROM_QSTR (MP_QSTR_DISPLAY ), MP_ROM_PTR (& displays [0 ].display )}
8185};
8286MP_DEFINE_CONST_DICT (board_module_globals , board_module_globals_table );
You can’t perform that action at this time.
0 commit comments