diff --git a/bsp/k210/driver/Kconfig b/bsp/k210/driver/Kconfig index 37f20b0b76..abca41be45 100644 --- a/bsp/k210/driver/Kconfig +++ b/bsp/k210/driver/Kconfig @@ -151,6 +151,9 @@ if BSP_USING_LCD config BSP_BOARD_K210_OPENMV_TEST bool "board_k210_openmv lcd scan: DIR_YX_LRUD" + config BSP_BOARD_K210_DRACO + bool "board_k210_Draco lcd scan: DIR_YX_LRUD" + config BSP_BOARD_USER bool "board_user: user defined." endchoice diff --git a/bsp/k210/driver/drv_lcd.c b/bsp/k210/driver/drv_lcd.c index f466140294..3e626553b7 100644 --- a/bsp/k210/driver/drv_lcd.c +++ b/bsp/k210/driver/drv_lcd.c @@ -109,6 +109,8 @@ #if defined(BSP_BOARD_K210_OPENMV_TEST) #define LCD_SCAN_DIR DIR_YX_LRUD +#elif defined(BSP_BOARD_K210_DRACO) +#define LCD_SCAN_DIR DIR_YX_LRUD #elif defined(BSP_BOARD_KD233) #define LCD_SCAN_DIR (DIR_YX_RLUD | 0x08) #elif defined(BSP_BOARD_USER) @@ -415,6 +417,9 @@ static rt_err_t drv_lcd_init(rt_device_t dev) framebuffer[i] = BLACK; } /*display on*/ + #ifdef BSP_BOARD_K210_DRACO + drv_lcd_cmd(lcd, INVERSION_DISPALY_ON); + #endif drv_lcd_cmd(lcd, DISPALY_ON); /* set to black */