diff options
| author | mrfaptastic <12006953+mrfaptastic@users.noreply.github.com> | 2021-08-19 20:09:10 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-19 20:09:10 +0100 |
| commit | 744e7354dcf8c5d548dc63f06da622d87203d129 (patch) | |
| tree | 476c827d1537a70779195b29d6acfbf7c77ea264 /examples/SmoothDoubleBuffer | |
| parent | 20eea3c3d3bc4c8c519992249ac611774181c94a (diff) | |
Update SmoothDoubleBuffer.ino
Diffstat (limited to 'examples/SmoothDoubleBuffer')
| -rw-r--r-- | examples/SmoothDoubleBuffer/SmoothDoubleBuffer.ino | 9 |
1 files 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 +} |
