aboutsummaryrefslogtreecommitdiff
path: root/examples/ChainedPanelsScreenBuffer
diff options
context:
space:
mode:
authormrfaptastic <12006953+mrfaptastic@users.noreply.github.com>2021-12-23 01:13:01 +0000
committerGitHub <noreply@github.com>2021-12-23 01:13:01 +0000
commit9f593bc415183b4379e64f294453db80ce1c9282 (patch)
treead8681463b24d361b4692764f4b9eb7b427cd60c /examples/ChainedPanelsScreenBuffer
parenta4fd7803b654f570708f14cc12bcd88afa868904 (diff)
Update ChainedPanelsScreenBuffer.ino
Diffstat (limited to 'examples/ChainedPanelsScreenBuffer')
-rw-r--r--examples/ChainedPanelsScreenBuffer/ChainedPanelsScreenBuffer.ino19
1 files changed, 6 insertions, 13 deletions
diff --git a/examples/ChainedPanelsScreenBuffer/ChainedPanelsScreenBuffer.ino b/examples/ChainedPanelsScreenBuffer/ChainedPanelsScreenBuffer.ino
index cef271e..b5de3c3 100644
--- a/examples/ChainedPanelsScreenBuffer/ChainedPanelsScreenBuffer.ino
+++ b/examples/ChainedPanelsScreenBuffer/ChainedPanelsScreenBuffer.ino
@@ -29,10 +29,9 @@
#define NUM_ROWS 1 // Number of rows of chained INDIVIDUAL PANELS
#define NUM_COLS 2 // Number of INDIVIDUAL PANELS per ROW
-
- // ^^^ NOTE: DEFAULT EXAMPLE SETUP IS FOR A CHAIN OF TWO x 1/8 SCAN PANELS
-
- // Change this to your needs, for details on VirtualPanel pls read the PDF!
+
+ // Change this to your needs, for details please read the PDF in
+ // the 'ChainedPanels'example folder!
#define SERPENT true
#define TOPDOWN false
@@ -89,18 +88,12 @@
dma_display->clearScreen();
delay(500);
- // NOW, create the 'Virtual Matrix Panel' class with a FastLED Pixel Buffer!
-
- // create FastLED_Pixel_Bufflay object based on our newly created dma_display object
+ // NOW, create the 'Virtual Matrix Panel' class with a FastLED Pixel Buffer! Pass it a dma_display hardware library pointer to use.
FastLED_Pixel_Buff = new VirtualMatrixPanel_FastLED_Pixel_Buffer((*dma_display), NUM_ROWS, NUM_COLS, PANEL_RES_X, PANEL_RES_Y, SERPENT, TOPDOWN);
if( not FastLED_Pixel_Buff->allocateMemory() )
- Serial.println("****** !KABOOM! Unable to find enough memory for pixel buffer! ***********");
-
-
- dma_display->fillScreen(dma_display->color444(8, 0, 0));
- delay(2000);
- //FastLED_Pixel_Buff->setPhysicalPanelScanRate(ONE_EIGHT); // If using with 1/8 Scan Panel Hardware
+ Serial.println("****** !KABOOM! Unable to find enough memory for the FastLED pixel buffer! ***********");
+
}