aboutsummaryrefslogtreecommitdiff
path: root/examples/GraphicsLayer
diff options
context:
space:
mode:
authormrfaptastic <12006953+mrfaptastic@users.noreply.github.com>2021-02-10 15:49:19 +0000
committermrfaptastic <12006953+mrfaptastic@users.noreply.github.com>2021-02-10 15:49:19 +0000
commit0749fa41932cc163a46801c1c1d6d2a309e8f273 (patch)
tree396fd65acebf24c2335399039819485dc930ead1 /examples/GraphicsLayer
parent6ea2280ff3af21828974832402270ce54e52c5cc (diff)
Update to 2.0.0
Also known as the @vortigont release! Hooray!
Diffstat (limited to 'examples/GraphicsLayer')
-rw-r--r--examples/GraphicsLayer/GraphicsLayer.ino12
1 files changed, 11 insertions, 1 deletions
diff --git a/examples/GraphicsLayer/GraphicsLayer.ino b/examples/GraphicsLayer/GraphicsLayer.ino
index 2c15d18..61f51bf 100644
--- a/examples/GraphicsLayer/GraphicsLayer.ino
+++ b/examples/GraphicsLayer/GraphicsLayer.ino
@@ -33,8 +33,18 @@
#include "Layer.h" // Layer Library
#include "Fonts/FreeSansBold9pt7b.h" // include adafruit font
-// Object creation
+/*
+ * Below is an is the 'legacy' way of initialising the MatrixPanel_I2S_DMA class.
+ * i.e. MATRIX_WIDTH and MATRIX_HEIGHT are modified by compile-time directives.
+ * By default the library assumes a single 64x32 pixel panel is connected.
+ *
+ * Refer to the example '2_PatternPlasma' on the new / correct way to setup this library
+ * for different resolutions / panel chain lengths within the sketch 'setup()'.
+ *
+ */
MatrixPanel_I2S_DMA dma_display; // Create HUB75 DMA object
+
+// Create FastLED based graphic 'layers'
Layer bgLayer(dma_display); // Create background Layer
Layer textLayer(dma_display); // Create foreground Layer