Browse Source

Added ST7735_FillScreenFast()

Vladimir N. Shilov 1 năm trước cách đây
mục cha
commit
19fb646a70
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 4 0
      lib/st7735/st7735.c

+ 4 - 0
lib/st7735/st7735.c

@@ -404,6 +404,10 @@ void ST7735_FillScreen(uint16_t color) {
   ST7735_FillRectangle(0, 0, ST7735_WIDTH, ST7735_HEIGHT, color);
 }
 
+void ST7735_FillScreenFast(uint16_t color) {
+    ST7735_FillRectangleFast(0, 0, ST7735_WIDTH, ST7735_HEIGHT, color);
+}
+
 void ST7735_DrawImage(uint16_t x, uint16_t y, uint16_t w, uint16_t h, const uint16_t* data) {
   if ((x >= ST7735_WIDTH) || (y >= ST7735_HEIGHT)) {
       return;