Fix examples for new version

This commit is contained in:
mrfaptastic 2020-07-29 23:29:42 +01:00
parent cb6f73558b
commit d623f181a9
3 changed files with 1 additions and 20 deletions

View file

@ -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;

View file

@ -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);

BIN
image.jpg

Binary file not shown.

Before

Width:  |  Height:  |  Size: 222 KiB

After

Width:  |  Height:  |  Size: 136 KiB