Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5869

MicroPython • Re: How to Read Data from Nextion Display via UART with Pico

$
0
0
The very short version is:
You have to send

Code:

objectname.attributename="new text"
followed by three bytes with the value 255.

If you have just made a button and not given it a new name it will be something like:

Code:

b0.txt="new text"
Followed by three bytes with the value 255.

All attributes shown in green in the Nextion editor (lower right) can be changed at runtime.
For numbers there are no ".
So to change the backgroundcolour:

Code:

b0.bco=20000
Followed by three bytes with the value 255.

Take a look at the example i linked to above and https://nextion.tech/instruction-set/

Statistics: Posted by Lobo-T — Thu Feb 08, 2024 12:34 pm



Viewing all articles
Browse latest Browse all 5869

Trending Articles