itead / ITEADLIB_Arduino_Nextion

MIT License
329 stars 318 forks source link

Not really and Arduino issue #104

Open mocallins opened 2 years ago

mocallins commented 2 years ago

Not really and Arduino issue, but i can't find a place to get some assistance.

I'm working with a Raspberry Pi Zero, with wifi dongle, all of this is working correctly

I'm on the correct serial port, as i can see the data from a touch event.

I don't think anything is transmitting because the couple of values i want to change in my interface, don't seem to be occuring.

On occasion i do receive a buffer overrun, "0x24 0xFF 0xFF 0xFF"

Any help would be greatly appreciated. Also am running the serial port at 9600,n,8,1 I have tried with different parameters and can only get the response codes to change (i.e. not recieve 0xff*3 consistantly), so i guess i am stuck with 9600, which is fine, not changing very many values

MaBaTa commented 5 months ago

If you don't have to change many Values, you could simply work without this Library. I am new to this Library so this what comes to my mind first...

You could send serial string on a Button event (Nextion Editor > Event Box > print"xyz123") and just check for "xyz123" with your Raspi.

To set values in the Nextion you just have to send: <objname>.<property>="value" for Example: b0.txt="Hello World" via Serial to the Display (as far as I know)

But as I said, I'm new and just informed myself what alternatives I have to this library I'm referring mostly to these videos: https://youtu.be/LL4TduSYsZ8?t=246 https://youtu.be/KBWqEmbW0X8?t=700

I hope this helps you...