aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormrfaptastic <12006953+mrfaptastic@users.noreply.github.com>2021-03-28 17:34:20 +0100
committermrfaptastic <12006953+mrfaptastic@users.noreply.github.com>2021-03-28 17:34:20 +0100
commit5062df590ef517c2ed64f3d80591037ca5b2bb73 (patch)
tree0a5aa3babf7bfa3044fc19df3e2ed20465312f40
parent95817a26a37a47c61fcf8518ebe01443700f3185 (diff)
Enabled FastLED CRGB Support
-rw-r--r--ESP32-HUB75-MatrixPanel-I2S-DMA.h16
1 files changed, 11 insertions, 5 deletions
diff --git a/ESP32-HUB75-MatrixPanel-I2S-DMA.h b/ESP32-HUB75-MatrixPanel-I2S-DMA.h
index 4f0f1e7..846cc76 100644
--- a/ESP32-HUB75-MatrixPanel-I2S-DMA.h
+++ b/ESP32-HUB75-MatrixPanel-I2S-DMA.h
@@ -2,15 +2,11 @@
#define _ESP32_RGB_64_32_MATRIX_PANEL_I2S_DMA
/***************************************************************************************/
-/* COMPILE-TIME OPTIONS - CONFIGURE AS DESIRED */
+/* COMPILE-TIME OPTIONS - Provide as part of PlatformIO project build_flags. */
/***************************************************************************************/
/* Enable serial debugging of the library, to see how memory is allocated etc. */
//#define SERIAL_DEBUG 1
-/* Use GFX_Root (https://github.com/mrfaptastic/GFX_Root) instead of
- * Adafruit_GFX library. No real benefit unless you don't want Bus_IO & Wire.h library dependencies.
- */
-//#define USE_GFX_ROOT 1
/*
* Do NOT build additional methods optimized for fast drawing,
@@ -18,6 +14,7 @@
*/
//#define NO_FAST_FUNCTIONS
+
/*
* Enable the use of FastLED CRGB values directly to drawPixel.
* i.e. drawPixel(x, y, CRGB color)
@@ -25,6 +22,15 @@
//#define FASTLED_CRGB_SUPPORT 1
+/* Use GFX_Root (https://github.com/mrfaptastic/GFX_Root) instead of Adafruit_GFX library.
+ * > Removes Bus_IO & Wire.h library dependencies.
+ * > Provides 24bpp (CRGB) color support for Adafruit_GFX functions like drawCircle etc.
+ * > Use this compile-time directive with FASTLED_CRGB_SUPPORT if 24bpp graphics
+ * functions are needed.
+ */
+//#define USE_GFX_ROOT 1
+
+
/* Physical / Chained HUB75(s) RGB pixel WIDTH and HEIGHT.
*
* This library has been tested with a 64x32 and 64x64 RGB panels.