diff --git a/board/Sipeed_LonganNano/BSP/Hardware/lcd/lcd.c b/board/Sipeed_LonganNano/BSP/Hardware/lcd/lcd.c index fb308a59..20d8dc5b 100644 --- a/board/Sipeed_LonganNano/BSP/Hardware/lcd/lcd.c +++ b/board/Sipeed_LonganNano/BSP/Hardware/lcd/lcd.c @@ -396,6 +396,16 @@ void LCD_Clear(uint16_t Color) } } +void LCD_ClearRect(uint16_t Color, uint16_t x, uint16_t y, uint16_t width, uint16_t height) +{ + LCD_Address_Set(x, y, width, height); + for(uint16_t i=0; i