Replies: 1 comment 2 replies
-
The problem is that a new needle is created in every loop() within compas_set.h so a new buffer is created. Eventually the sketch will crash. Only create the needle once in setup(). |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have build a dashboard with meters, using the sprite principle. I used the exaple "animated dial" as guide. They really work nice.
Now i have added a long touch touch sense on the touch screen which brings me to a menu. The menu is another jpeg image with three buttons drawn on it, which i load, and i use x/y sensing for the choices. These are a keyboard for entry, a memory screen to choose presets and going back to the dashboard with the meters. If i choose the latter i get graphical artefacts in the sprite area but once the meters go over that artefact area, all is fine.
I have made a demo with the example animated dial sprite , then switching to a menu for a few seconds, and then coming back to the dial. It is then, that sometimes artefacts are seen. How can I solve this.
The sketch is attached. I run it on a WT32-SCO1 display but i had the same a a 3.5" TFT SPI "red" display
Erik
Sprite_Issue.zip
Beta Was this translation helpful? Give feedback.
All reactions