Explorar el Código

Added ST7735_FillScreenFast()

Vladimir N. Shilov hace 1 año
padre
commit
19fb646a70
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  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;