From 1294dedfbbb52dbb74d517d75344c9d3ed825526 Mon Sep 17 00:00:00 2001 From: csloz Date: Wed, 14 Aug 2019 17:37:03 +0800 Subject: [PATCH] Add drawIcon function Draws a C style Icon on the display using RGB565 color. --- ESP32-RGB64x32MatrixPanel-I2S-DMA.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ESP32-RGB64x32MatrixPanel-I2S-DMA.h b/ESP32-RGB64x32MatrixPanel-I2S-DMA.h index 95a3218..0b78993 100644 --- a/ESP32-RGB64x32MatrixPanel-I2S-DMA.h +++ b/ESP32-RGB64x32MatrixPanel-I2S-DMA.h @@ -238,7 +238,7 @@ class RGB64x32MatrixPanel_I2S_DMA : public Adafruit_GFX { 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, rgb_24 color); - void drawIcon (int *ico, int16_t x, int16_t y, int16_t h, int16_t w); + void drawIcon (int *ico, int16_t x, int16_t y, int16_t cols, int16_t rows); // Color 444 is a 4 bit scale, so 0 to 15, color 565 takes a 0-255 bit value, so scale up by 255/15 (i.e. 17)! uint16_t color444(uint8_t r, uint8_t g, uint8_t b) { return color565(r*17,g*17,b*17); }