Skip to content
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

Touch Hotspot are not in the correct position #29

Open
trunneml opened this issue Aug 5, 2022 · 1 comment
Open

Touch Hotspot are not in the correct position #29

trunneml opened this issue Aug 5, 2022 · 1 comment

Comments

@trunneml
Copy link

trunneml commented Aug 5, 2022

Hi,

I tried to modify the HMI file but when I open it with the Nextion Editor (v1.63.3) the Touch Hotspots are not in the corrected place.

grafik

Is that intended?

@trunneml
Copy link
Author

trunneml commented Aug 5, 2022

I found out that the panel has an offset and the m0..m11 are a workaround. Adding lcd_dev fffb 0002 0000 0020 into the setup code fixes the offset problem for me.

//The following code is only run once when power on, and is generally used for global variable definition and power on initialization data
int sys0=0,sys1=0,sys2=0,swipex=0,swipey=0,swipec=0,swipec2=0,swipedx=100,swipedy=100     //At present, the definition of global variable only supports 4-byte signed integer (int), and other types of global quantity declaration are not supported. If you want to use string type, you can use variable control in the page to implement
wup=4 // Wake-up page 4
lcd_dev fffb 0002 0000 0020
page Connecting                         //Power on start page 0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant