commit
ddaa8f3f32
@ -151,6 +151,9 @@ if BSP_USING_LCD
|
|||||||
config BSP_BOARD_K210_OPENMV_TEST
|
config BSP_BOARD_K210_OPENMV_TEST
|
||||||
bool "board_k210_openmv lcd scan: DIR_YX_LRUD"
|
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
|
config BSP_BOARD_USER
|
||||||
bool "board_user: user defined."
|
bool "board_user: user defined."
|
||||||
endchoice
|
endchoice
|
||||||
|
@ -109,6 +109,8 @@
|
|||||||
|
|
||||||
#if defined(BSP_BOARD_K210_OPENMV_TEST)
|
#if defined(BSP_BOARD_K210_OPENMV_TEST)
|
||||||
#define LCD_SCAN_DIR DIR_YX_LRUD
|
#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)
|
#elif defined(BSP_BOARD_KD233)
|
||||||
#define LCD_SCAN_DIR (DIR_YX_RLUD | 0x08)
|
#define LCD_SCAN_DIR (DIR_YX_RLUD | 0x08)
|
||||||
#elif defined(BSP_BOARD_USER)
|
#elif defined(BSP_BOARD_USER)
|
||||||
@ -415,6 +417,9 @@ static rt_err_t drv_lcd_init(rt_device_t dev)
|
|||||||
framebuffer[i] = BLACK;
|
framebuffer[i] = BLACK;
|
||||||
}
|
}
|
||||||
/*display on*/
|
/*display on*/
|
||||||
|
#ifdef BSP_BOARD_K210_DRACO
|
||||||
|
drv_lcd_cmd(lcd, INVERSION_DISPALY_ON);
|
||||||
|
#endif
|
||||||
drv_lcd_cmd(lcd, DISPALY_ON);
|
drv_lcd_cmd(lcd, DISPALY_ON);
|
||||||
|
|
||||||
/* set to black */
|
/* set to black */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user