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 +}