Preserving the screen state
in
Programming Questions
•
2 years ago
Hi all,
I've got a program that draws shapes based on Arduino sensor data. I would like to temporarily display a graphic over the screen and then revert back to the previous screen.
What is the simplest way to do this?
My program does not currently log the data that dictates the shapes drawn.
Ideally, I would like to create a canvas on top of my previous screen that would function independently, although I don't think this is possible.
I can only think of two solutions to this problem. I'd appreciate hearing more ideas, or feedback on these:
Charlie
I've got a program that draws shapes based on Arduino sensor data. I would like to temporarily display a graphic over the screen and then revert back to the previous screen.
What is the simplest way to do this?
My program does not currently log the data that dictates the shapes drawn.
Ideally, I would like to create a canvas on top of my previous screen that would function independently, although I don't think this is possible.
I can only think of two solutions to this problem. I'd appreciate hearing more ideas, or feedback on these:
- Capture the screen before the graphic and then re-display it after the graphic.
- Store the Arduino data in an array so the screen can be recalculated and displayed
Charlie
1