From aa0c7785b27210a0608f0a42b0c96f204c10a4d1 Mon Sep 17 00:00:00 2001 From: mrfaptastic <12006953+mrfaptastic@users.noreply.github.com> Date: Thu, 19 Aug 2021 19:43:49 +0100 Subject: [PATCH] Update SmoothDoubleBuffer.ino --- examples/SmoothDoubleBuffer/SmoothDoubleBuffer.ino | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/examples/SmoothDoubleBuffer/SmoothDoubleBuffer.ino b/examples/SmoothDoubleBuffer/SmoothDoubleBuffer.ino index 114f5ee..80bd6bf 100644 --- a/examples/SmoothDoubleBuffer/SmoothDoubleBuffer.ino +++ b/examples/SmoothDoubleBuffer/SmoothDoubleBuffer.ino @@ -19,14 +19,13 @@ void setup() Serial.println("...Starting Display"); HUB75_I2S_CFG mxconfig; - mxconfig.double_buff = true; // Turn of double buffer - mxconfig.clkphase = true; + mxconfig.double_buff = true; // Turn of double buffer + mxconfig.clkphase = true; // OK, now we can create our matrix object display = new MatrixPanel_I2S_DMA(mxconfig); display->begin(); // setup display with pins as pre-defined in the library - display->setTextColor(display->color565(255, 255, 255)); start_x = display->width(); } @@ -49,12 +48,14 @@ void loop() if (buffer_id) { display->setCursor(3, row1); + display->setTextColor(display->color565(200, 0, 0)); display->fillRect(start_x, 6, square_size, square_size, display->color565(200,0,0)); //delay(40); // simulate slow drawing operation } else { display->setCursor(3, row2); + display->setTextColor(display->color565(0, 200, 0)); display->fillRect(10, start_x, square_size, square_size, display->color565(0,200,0)); }