k210 lcd添加Draco板子配置

This commit is contained in:
liqiwen 2021-10-27 16:24:47 +08:00
parent b064376993
commit bbabae4429
2 changed files with 8 additions and 0 deletions

View File

@ -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

View File

@ -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 */