Switch variable to extern
This commit is contained in:
parent
7f3b3dd3af
commit
336abdfbc7
|
@ -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
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue