You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In working on some example code, I have run across several display anomalies when drawing to the screen. I have decided that this is probably due to code running in the button handler that is affecting the internal X,Y global variables (Column, Row). When these variable are changed it causes confusions in the thread that is handling the main Lua loop. This issue doesn't necessarily need to be fixed in code (as it is easy to set a flag to do the updates in the main loop) but a warning should be put in the manual to inform users that they should not write to the screen in the button event. The one exception that I don't fully understand at this time is the ez.Button(id, event) call that is given in the example code in section 14.4. The comment with this code indicates that is may redraw a button, this too may cause this concurrency issue to rear its head.
Location of Issue
Which Document: ezLCD-5x Lua API Manual 082922.pdf
Describe the issue
In working on some example code, I have run across several display anomalies when drawing to the screen. I have decided that this is probably due to code running in the button handler that is affecting the internal X,Y global variables (Column, Row). When these variable are changed it causes confusions in the thread that is handling the main Lua loop. This issue doesn't necessarily need to be fixed in code (as it is easy to set a flag to do the updates in the main loop) but a warning should be put in the manual to inform users that they should not write to the screen in the button event. The one exception that I don't fully understand at this time is the ez.Button(id, event) call that is given in the example code in section 14.4. The comment with this code indicates that is may redraw a button, this too may cause this concurrency issue to rear its head.
Location of Issue
The text was updated successfully, but these errors were encountered: