Dear all
I am working with a code that parses several sensors. I use a shell UTFT LCD system for a mega arduino board. I am trying to switch screens using a touch screen menu. However for some sensors, I'm having screen overlay issues. Even cleaning the previous screen, the problem persists because it seems that the functions keep running after the back to main menu. This discussion needs to be conceptual because code contains almost 3000 lines and it would be impossible to post it here.
The problem only appears for some sensors that require more than 3 or 4 subroutine functions. In sensors whose code is limited to reading and drawing the screen the problem does not appear.
I appreciate if anyone can give me any tips or suggest some similar project where I can learn a little more.
Thank you,
Cesar