From c8635933e536371444b8ac53611ce4c8620cdd55 Mon Sep 17 00:00:00 2001 From: mrfaptastic <12006953+mrfaptastic@users.noreply.github.com> Date: Sun, 20 Sep 2020 16:23:48 +0100 Subject: [PATCH] Update double buffer example --- .../BufferSwap.ino => DoubleBufferSwap/DoubleBufferSwap.ino} | 3 ++- library.json | 4 +--- 2 files changed, 3 insertions(+), 4 deletions(-) rename examples/{BufferSwap/BufferSwap.ino => DoubleBufferSwap/DoubleBufferSwap.ino} (90%) diff --git a/examples/BufferSwap/BufferSwap.ino b/examples/DoubleBufferSwap/DoubleBufferSwap.ino similarity index 90% rename from examples/BufferSwap/BufferSwap.ino rename to examples/DoubleBufferSwap/DoubleBufferSwap.ino index a797937..06de58f 100644 --- a/examples/BufferSwap/BufferSwap.ino +++ b/examples/DoubleBufferSwap/DoubleBufferSwap.ino @@ -1,6 +1,7 @@ #include -RGB64x32MatrixPanel_I2S_DMA display(true); // Note the TRUE -> Turns of secondary buffer +RGB64x32MatrixPanel_I2S_DMA display(true); // Note the TRUE -> Turns of secondary buffer - "double buffering"! + // Double buffering is not enabled by default with the library. const byte row0 = 2+0*10; const byte row1 = 2+1*10; diff --git a/library.json b/library.json index 21425a4..84c9cad 100644 --- a/library.json +++ b/library.json @@ -23,9 +23,7 @@ "examples/BitmapIcons/*.ino", "examples/BitmapIcons/*.cpp", "examples/BitmapIcons/*.h", - "examples/Buffer_Swap_Test/*.ino", - "examples/Buffer_Swap_Test/*.cpp", - "examples/Buffer_Swap_Test/*.h", + "examples/DoubleBufferSwap/*.ino", "examples/ChainedPanels/*.ino", "examples/PatternPlasma/*.ino", "examples/PatternPlasma/*.cpp",