Hello
I'm trying to create a speedometer using nextion recently. However, nextion's gauge comes out weird. The previous gauges don't disappear and the problem continues to appear on the screen.
Put the counting value in the val of zo(gauge).
Isn't changing the value of zo only changing the angle of the gauge?
I don't know how to solve it
Are you telling the gauge to disappear BEFORE giving the new value? I am not familiar with what you are using, so please give a link to the documentation for it.
You need to erase the last line before you draw the new one. So remember the coordinates of the previous line then draw the new one and update the coordinates
you need your screen to refresh, you should clear the screen before you print on it again,
put some code that clears the display in the upper part of your timerIsr(), that way it clears the display before it prints again.
Glad you got it solved. You will use that very same procedure even when using the small LCD, 2 line display. Even your digital TV uses that same procedure on your TV screen.