From 1c060c8b28dd2f03aa47746a050a0651fb2f5870 Mon Sep 17 00:00:00 2001 From: mrfaptastic <12006953+mrfaptastic@users.noreply.github.com> Date: Wed, 31 Mar 2021 19:24:08 +0100 Subject: [PATCH] Update QuarterScanMatrixPanel.h --- .../P6_32x16_1_4_ScanPanel/QuarterScanMatrixPanel.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/examples/P6_32x16_1_4_ScanPanel/QuarterScanMatrixPanel.h b/examples/P6_32x16_1_4_ScanPanel/QuarterScanMatrixPanel.h index b7955f5..2a0f0e7 100644 --- a/examples/P6_32x16_1_4_ScanPanel/QuarterScanMatrixPanel.h +++ b/examples/P6_32x16_1_4_ScanPanel/QuarterScanMatrixPanel.h @@ -105,9 +105,9 @@ class QuarterScanMatrixPanel : public Adafruit_GFX virtual void drawPixel(int16_t x, int16_t y, uint16_t color); virtual void fillScreen(uint16_t color); // overwrite adafruit implementation void clearScreen() { fillScreen(0); } - void drawPixelRGB565(int16_t x, int16_t y, uint16_t color); + //void drawPixelRGB565(int16_t x, int16_t y, uint16_t color); void drawPixelRGB888(int16_t x, int16_t y, uint8_t r, uint8_t g, uint8_t b); - void drawPixelRGB24(int16_t x, int16_t y, RGB24 color); + //void drawPixelRGB24(int16_t x, int16_t y, RGB24 color); void drawIcon (int *ico, int16_t x, int16_t y, int16_t module_cols, int16_t module_rows); uint16_t color444(uint8_t r, uint8_t g, uint8_t b) { @@ -422,12 +422,13 @@ inline void QuarterScanMatrixPanel::fillScreen(uint16_t color) // adafruit virt // No need to map this. this->display->fillScreen(color); } - +/* inline void QuarterScanMatrixPanel::drawPixelRGB565(int16_t x, int16_t y, uint16_t color) { VirtualCoords coords = getCoords(x, y); this->display->drawPixelRGB565( coords.x, coords.y, color); } +*/ inline void QuarterScanMatrixPanel::drawPixelRGB888(int16_t x, int16_t y, uint8_t r, uint8_t g, uint8_t b) @@ -435,12 +436,13 @@ inline void QuarterScanMatrixPanel::drawPixelRGB888(int16_t x, int16_t y, uint8_ VirtualCoords coords = getCoords(x, y); this->display->drawPixelRGB888( coords.x, coords.y, r, g, b); } - +/* inline void QuarterScanMatrixPanel::drawPixelRGB24(int16_t x, int16_t y, RGB24 color) { VirtualCoords coords = getCoords(x, y); this->display->drawPixelRGB24(coords.x, coords.y, color); } +*/ // need to recreate this one, as it wouldnt work to just map where it starts.