From 20eea3c3d3bc4c8c519992249ac611774181c94a Mon Sep 17 00:00:00 2001 From: mrfaptastic <12006953+mrfaptastic@users.noreply.github.com> Date: Thu, 19 Aug 2021 20:05:48 +0100 Subject: [PATCH 1/3] Update README.md --- examples/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/README.md b/examples/README.md index 84f3823..0f11b0c 100644 --- a/examples/README.md +++ b/examples/README.md @@ -8,6 +8,6 @@ |BitmapIcons |Simple example of how to display a bitmap image to the display. | |ChainedPanels |Popular example on how to use the 'VirtualDisplay' class to chain multiple LED Matrix Panels to form a much bigger display! Refer to the README within this example's folder! | |ChainedPanelsAuroraDemo |As above, but showing a large trippy plasma animation. | -|DoubleBufferSwap |Advanced example of using a back-buffer (double buffering). Not useful for 99% of use cases. | +|Smooth Double Buffer |Example of using a back-buffer (double buffering). Not useful in 99.9% of use-cases of this library. Uses double the SRAM as well. | |P6_32x16_1_4_ScanPanel |An advanced example ('hack') on how to use this library on 32w x 16h 1/4 Scan LED Matrix Panel. | |PIO_TestPatterns |Non-Arduino example of how to display basic shapes. | From 744e7354dcf8c5d548dc63f06da622d87203d129 Mon Sep 17 00:00:00 2001 From: mrfaptastic <12006953+mrfaptastic@users.noreply.github.com> Date: Thu, 19 Aug 2021 20:09:10 +0100 Subject: [PATCH 2/3] Update SmoothDoubleBuffer.ino --- examples/SmoothDoubleBuffer/SmoothDoubleBuffer.ino | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/examples/SmoothDoubleBuffer/SmoothDoubleBuffer.ino b/examples/SmoothDoubleBuffer/SmoothDoubleBuffer.ino index 80bd6bf..f7c9f29 100644 --- a/examples/SmoothDoubleBuffer/SmoothDoubleBuffer.ino +++ b/examples/SmoothDoubleBuffer/SmoothDoubleBuffer.ino @@ -29,7 +29,12 @@ void setup() start_x = display->width(); } - +/* + This example draws a red square on one buffer only, and a green square on another buffer only. + It then flips between buffers as fast as possible - to give the impression they're both on screen at the same time! + + The only thing that's painted to both buffers is a blue square. + */ const int square_size = 16; void loop() { @@ -63,4 +68,4 @@ void loop() if (start_x < (-1*square_size)) start_x = display->width()+square_size; -} \ No newline at end of file +} From f523f1371ad64bd7ab52cfbaee348c07c767d0ae Mon Sep 17 00:00:00 2001 From: mrfaptastic <12006953+mrfaptastic@users.noreply.github.com> Date: Thu, 19 Aug 2021 20:09:43 +0100 Subject: [PATCH 3/3] Update SmoothDoubleBuffer.ino --- examples/SmoothDoubleBuffer/SmoothDoubleBuffer.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/SmoothDoubleBuffer/SmoothDoubleBuffer.ino b/examples/SmoothDoubleBuffer/SmoothDoubleBuffer.ino index f7c9f29..6e40c36 100644 --- a/examples/SmoothDoubleBuffer/SmoothDoubleBuffer.ino +++ b/examples/SmoothDoubleBuffer/SmoothDoubleBuffer.ino @@ -31,7 +31,7 @@ void setup() } /* This example draws a red square on one buffer only, and a green square on another buffer only. - It then flips between buffers as fast as possible - to give the impression they're both on screen at the same time! + It then flips between buffers as fast as possible whilst moving them as well - to give the impression they're both on screen at the same time! The only thing that's painted to both buffers is a blue square. */