Update SmoothDoubleBuffer.ino
This commit is contained in:
parent
20eea3c3d3
commit
744e7354dc
1 changed files with 7 additions and 2 deletions
|
@ -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;
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue