Switch variable to extern

This commit is contained in:
ZodiusInfuser 2022-03-30 17:44:36 +01:00
parent 7f3b3dd3af
commit 336abdfbc7
3 changed files with 4 additions and 2 deletions

View File

@ -3,6 +3,6 @@
#include "shared-bindings/digitalio/DigitalInOut.h"
digitalio_digitalinout_obj_t enable_pin_obj;
extern digitalio_digitalinout_obj_t enable_pin_obj;
#endif // PIMORONI_BADGER2040_SHARED

View File

@ -34,6 +34,8 @@
#include "supervisor/shared/board.h"
#include "badger-shared.h"
digitalio_digitalinout_obj_t enable_pin_obj;
#define DELAY 0x80
enum reg {

View File

@ -45,6 +45,6 @@ STATIC const mp_rom_map_elem_t board_module_globals_table[] = {
{ MP_ROM_QSTR(MP_QSTR_UART), MP_ROM_PTR(&board_uart_obj) },
{ MP_ROM_QSTR(MP_QSTR_DISPLAY), MP_ROM_PTR(&displays[0].epaper_display)},
{ MP_ROM_QSTR(MP_QSTR_ENABLE), MP_ROM_PTR(&enable_pin_obj)},
{ MP_ROM_QSTR(MP_QSTR_ENABLE_DIO), MP_ROM_PTR(&enable_pin_obj)},
};
MP_DEFINE_CONST_DICT(board_module_globals, board_module_globals_table);