From 5f9c556092c38b51f391121453ec0ba3303070f4 Mon Sep 17 00:00:00 2001 From: Glenn Ruben Bakke Date: Thu, 19 Jan 2017 20:45:51 +0100 Subject: [PATCH] nrf5/drivers: Adding ls0xxb7dxx to display module. --- nrf5/drivers/display/moddisplay.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/nrf5/drivers/display/moddisplay.c b/nrf5/drivers/display/moddisplay.c index 56e2bf2073..1e14c4a449 100644 --- a/nrf5/drivers/display/moddisplay.c +++ b/nrf5/drivers/display/moddisplay.c @@ -30,6 +30,7 @@ #include "epaper_sld00200p_obj.h" #include "lcd_ili9341_obj.h" +#include "lcd_ls0xxb7dxxx_obj.h" #include "oled_ssd1305_obj.h" #include "oled_ssd1306_obj.h" @@ -41,6 +42,9 @@ STATIC const mp_map_elem_t mp_module_display_globals_table[] = { #if MICROPY_PY_DISPLAY_LCD_ILI9341 { MP_OBJ_NEW_QSTR(MP_QSTR_ILI9341), (mp_obj_t)&lcd_ili9341_type }, #endif +#if MICROPY_PY_DISPLAY_LCD_LS0XXB7DXXX + { MP_OBJ_NEW_QSTR(MP_QSTR_LS0XXB7DXXX), (mp_obj_t)&lcd_ls0xxb7dxxx_type }, +#endif #if MICROPY_PY_DISPLAY_OLED_SSD1305 { MP_OBJ_NEW_QSTR(MP_QSTR_SSD1305), (mp_obj_t)&oled_ssd1305_type }, #endif @@ -48,8 +52,7 @@ STATIC const mp_map_elem_t mp_module_display_globals_table[] = { { MP_OBJ_NEW_QSTR(MP_QSTR_SSD1306), (mp_obj_t)&oled_ssd1306_type }, #endif #if 0 - { MP_OBJ_NEW_QSTR(MP_QSTR_SSD1289), (mp_obj_t)&lcd_ssd1289_type }, - { MP_OBJ_NEW_QSTR(MP_QSTR_LS027b7DH01), (mp_obj_t)&lcd_ls027b7dh01_type } + { MP_OBJ_NEW_QSTR(MP_QSTR_SSD1289), (mp_obj_t)&lcd_ssd1289_type } #endif };