-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Write Gauge value to display not deleting prior value #10
Comments
Did you update your comport instance? NextionComPort nextion; |
I tried the update but didn't work either. When debuging inside Nextion Editor the issue is the same. I found out that if the gauge is set for crop image and located ontop of a picture as a full background this happens. If I switch the gauge to "solid color" the gauge works correctly. So it is a refresh thing. I found a refresh command "ref 0" where 0 is the id of the control to refresh. Page0 is ID 0. So by changing my guage values followed by sending a page refresh fixed the issue in the Nextion Editor. How do I send a page refresh via this library? Thanks again |
I think you must send the command "page x". See https://wiki.iteadstudio.com/Nextion_Instruction_Set |
Thanks, but how do I send a generic command via the library? |
Have a look to the documentation. e.g. nextion.command("cir 50,50,20,WHITE"); |
Hello,
Excellent library. I am enjoying it.
I have a gauge on the display with a value 90 as it's default value. I send an Arduino command to set it to 180 and the dial moves to 180. However, it is still showing the old 90 value dial hand. So basically I have two dial hands; one at 90 and the other at 180. Is there some clear command I should put in prior to changing the value?
I tried both these ways:
thanks for the help.
The text was updated successfully, but these errors were encountered: