Documentation updates

This commit is contained in:
mrfaptastic 2021-04-12 13:02:47 +01:00
parent 6180fe6e07
commit 18464e068e
4 changed files with 6 additions and 2 deletions

View file

@ -95,7 +95,7 @@ void GIFDraw(GIFDRAW *pDraw)
if (iCount) // any opaque pixels? if (iCount) // any opaque pixels?
{ {
for(int xOffset = 0; xOffset < iCount; xOffset++ ){ for(int xOffset = 0; xOffset < iCount; xOffset++ ){
dma_display.drawPixelRGB565(x + xOffset, y, usTemp[xOffset]); dma_display.drawPixel(x + xOffset, y, usTemp[xOffset]); // 565 Color Format
} }
x += iCount; x += iCount;
iCount = 0; iCount = 0;

View file

@ -141,6 +141,10 @@
#define NUM_COLS 2 // Number of INDIVIDUAL PANELS per ROW #define NUM_COLS 2 // Number of INDIVIDUAL PANELS per ROW
#define PANEL_CHAIN NUM_ROWS*NUM_COLS // total number of panels chained one to another #define PANEL_CHAIN NUM_ROWS*NUM_COLS // total number of panels chained one to another
// Change this to your needs, for details on VirtualPanel pls read the PDF!
#define SERPENT true
#define TOPDOWN false
// library includes // library includes
#include <ESP32-VirtualMatrixPanel-I2S-DMA.h> #include <ESP32-VirtualMatrixPanel-I2S-DMA.h>
@ -199,7 +203,7 @@ void setup() {
Serial.println("****** !KABOOM! I2S memory allocation failed ***********"); Serial.println("****** !KABOOM! I2S memory allocation failed ***********");
// create VirtualDisplay object based on our newly created dma_display object // create VirtualDisplay object based on our newly created dma_display object
virtualDisp = new VirtualMatrixPanel((*dma_display), NUM_ROWS, NUM_COLS, PANEL_RES_X, PANEL_RES_Y, true); virtualDisp = new VirtualMatrixPanel((*dma_display), NUM_ROWS, NUM_COLS, PANEL_RES_X, PANEL_RES_Y, SERPENT, TOPDOWN);
// So far so good, so continue // So far so good, so continue
virtualDisp->fillScreen(virtualDisp->color444(0, 0, 0)); virtualDisp->fillScreen(virtualDisp->color444(0, 0, 0));