This commit is contained in:
mrfaptastic 2021-08-19 20:44:15 +01:00
commit c1699bb8fc
2 changed files with 8 additions and 3 deletions

View file

@ -8,6 +8,6 @@
|BitmapIcons |Simple example of how to display a bitmap image to the display. | |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! | |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. | |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. | |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. | |PIO_TestPatterns |Non-Arduino example of how to display basic shapes. |

View file

@ -29,7 +29,12 @@ void setup()
start_x = display->width(); 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 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.
*/
const int square_size = 16; const int square_size = 16;
void loop() void loop()
{ {
@ -63,4 +68,4 @@ void loop()
if (start_x < (-1*square_size)) start_x = display->width()+square_size; if (start_x < (-1*square_size)) start_x = display->width()+square_size;
} }