aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authormrfaptastic <12006953+mrfaptastic@users.noreply.github.com>2020-07-29 23:29:42 +0100
committermrfaptastic <12006953+mrfaptastic@users.noreply.github.com>2020-07-29 23:29:42 +0100
commitd623f181a953529fa9e5b5c01e1b6123009f6e34 (patch)
tree128dcda8a393398b06f4adc316933dd404dc6549 /examples
parentcb6f73558b6a0cb20b7a349c5912a99f4c18b142 (diff)
Fix examples for new version
Diffstat (limited to 'examples')
-rw-r--r--examples/Buffer_Swap_Test/Buffer_Swap_Test.ino2
-rw-r--r--examples/testshapes_32x64/testshapes_32x64.ino19
2 files changed, 1 insertions, 20 deletions
diff --git a/examples/Buffer_Swap_Test/Buffer_Swap_Test.ino b/examples/Buffer_Swap_Test/Buffer_Swap_Test.ino
index 0a11248..7b0e383 100644
--- a/examples/Buffer_Swap_Test/Buffer_Swap_Test.ino
+++ b/examples/Buffer_Swap_Test/Buffer_Swap_Test.ino
@@ -1,6 +1,6 @@
#include <ESP32-RGB64x32MatrixPanel-I2S-DMA.h>
-RGB64x32MatrixPanel_I2S_DMA display; // RGB Panel
+RGB64x32MatrixPanel_I2S_DMA display(true); // Note the TRUE -> Turns of secondary buffer
const byte row0 = 2+0*10;
const byte row1 = 2+1*10;
diff --git a/examples/testshapes_32x64/testshapes_32x64.ino b/examples/testshapes_32x64/testshapes_32x64.ino
index de911fc..b09bfad 100644
--- a/examples/testshapes_32x64/testshapes_32x64.ino
+++ b/examples/testshapes_32x64/testshapes_32x64.ino
@@ -17,25 +17,6 @@ void setup() {
dma_display.begin();
- for (int y = 0; y < dma_display.height(); y++)
- {
- dma_display.drawFastHLine(0, y-1, dma_display.width(), dma_display.color565(255-(15*y), 0, 0));
- delay(100);
- }
-
- delay(1000);
-
-
- for (int y = 0; y < dma_display.height(); y++)
- {
- dma_display.drawFastHLine(0, y-1, dma_display.width(), dma_display.color565(128, 255-(15*y), 0));
- delay(100);
- }
-
- delay(2000);
-
-
-
// draw a pixel in solid white
dma_display.drawPixel(0, 0, dma_display.color444(15, 15, 15));
delay(500);