nrf5/drivers: Adding ifdef sourrounding the implementation of module. Configurable with mpconfigport.h.
This commit is contained in:
parent
bace74fba4
commit
6b492cd8c4
@ -26,6 +26,7 @@
|
||||
|
||||
#include "py/obj.h"
|
||||
|
||||
#if MICROPY_PY_DISPLAY_EPAPER
|
||||
STATIC const mp_map_elem_t epaper_module_globals_table[] = {
|
||||
{ MP_OBJ_NEW_QSTR(MP_QSTR___name__), MP_OBJ_NEW_QSTR(MP_QSTR_epaper) },
|
||||
#if 0
|
||||
@ -39,3 +40,5 @@ const mp_obj_module_t display_epaper_module = {
|
||||
.base = { &mp_type_module },
|
||||
.globals = (mp_obj_dict_t*)&epaper_module_globals,
|
||||
};
|
||||
|
||||
#endif // MICROPY_PY_DISPLAY_EPAPER
|
||||
|
@ -26,6 +26,8 @@
|
||||
|
||||
#include "py/obj.h"
|
||||
|
||||
#if MICROPY_PY_DISPLAY_LCD
|
||||
|
||||
STATIC const mp_map_elem_t lcd_module_globals_table[] = {
|
||||
{ MP_OBJ_NEW_QSTR(MP_QSTR___name__), MP_OBJ_NEW_QSTR(MP_QSTR_lcd) },
|
||||
#if 0
|
||||
@ -41,3 +43,5 @@ const mp_obj_module_t display_lcd_module = {
|
||||
.base = { &mp_type_module },
|
||||
.globals = (mp_obj_dict_t*)&lcd_module_globals,
|
||||
};
|
||||
|
||||
#endif // MICROPY_PY_DISPLAY_LCD
|
||||
|
@ -26,6 +26,8 @@
|
||||
|
||||
#include "py/obj.h"
|
||||
|
||||
#if MICROPY_PY_DISPLAY_OLED
|
||||
|
||||
STATIC const mp_map_elem_t oled_module_globals_table[] = {
|
||||
{ MP_OBJ_NEW_QSTR(MP_QSTR___name__), MP_OBJ_NEW_QSTR(MP_QSTR_oled) },
|
||||
#if 0
|
||||
@ -40,3 +42,5 @@ const mp_obj_module_t display_oled_module = {
|
||||
.base = { &mp_type_module },
|
||||
.globals = (mp_obj_dict_t*)&oled_module_globals,
|
||||
};
|
||||
|
||||
#endif // MICROPY_PY_DISPLAY_OLED
|
||||
|
Loading…
x
Reference in New Issue
Block a user