From 5b54b56a1410f458899bb78581df271d7c21c7ec Mon Sep 17 00:00:00 2001 From: Sol Huebner Date: Mon, 10 Jan 2022 17:31:22 -0500 Subject: [PATCH] Added missing fillScreenRGB888 to VirtualMatrixPanel Fixes #238 --- ESP32-VirtualMatrixPanel-I2S-DMA.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ESP32-VirtualMatrixPanel-I2S-DMA.h b/ESP32-VirtualMatrixPanel-I2S-DMA.h index eac50bf..47ac960 100644 --- a/ESP32-VirtualMatrixPanel-I2S-DMA.h +++ b/ESP32-VirtualMatrixPanel-I2S-DMA.h @@ -98,6 +98,7 @@ class VirtualMatrixPanel // equivalent methods of the matrix library so it can be just swapped out. virtual void drawPixel(int16_t x, int16_t y, uint16_t color); virtual void fillScreen(uint16_t color); // overwrite adafruit implementation + virtual void fillScreenRGB888(uint8_t r, uint8_t g,uint8_t b); void clearScreen() { display->clearScreen(); } void drawPixelRGB888(int16_t x, int16_t y, uint8_t r, uint8_t g, uint8_t b); @@ -256,6 +257,10 @@ inline void VirtualMatrixPanel::fillScreen(uint16_t color) { // adafruit virtual this->display->fillScreen(color); } +inline void VirtualMatrixPanel::fillScreenRGB888(uint8_t r, uint8_t g,uint8_t b) { + this->display->fillScreenRGB888(r, g, b); +} + inline void VirtualMatrixPanel::drawPixelRGB888(int16_t x, int16_t y, uint8_t r, uint8_t g, uint8_t b) { getCoords(x, y); this->display->drawPixelRGB888( coords.x, coords.y, r, g, b);