Seithan / EasyNextionLibrary

A simple library for Nextion display that uses only four functions. You can easily benefit from Nextion's wide range of features and advantages in just a few easy steps. The library uses a custom protocol that can prove to be a powerful tool for advanced users as it can be easily modified to meet one’s needs.
MIT License
117 stars 30 forks source link

serial baud rate #12

Closed Xarin94 closed 4 years ago

Xarin94 commented 4 years ago

with this command the screen works but slowly, myNex.begin(9600) i tried to write myNex.begin(115200); but screen can' read anything. thanks

Seithan commented 4 years ago

Hello,

This could be due to different baud rates. Arduino has 115200 and Nextion something else, possibly 9600.

In the Preinitialize Event of the first page loaded on Nextion, write: baud=115200 (this changes the baud rate of Nextion to 115200 only for that HMI file) or bauds=115200 (this changes the default baud rate to 115200)

Try to do this and let me know

Xarin94 commented 4 years ago

thanks a lot, works