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
116 stars 29 forks source link

How to change the picture on nextion? #32

Closed nodoubtman closed 3 years ago

nodoubtman commented 3 years ago

Can we change the picture on the nextion display?

And how?

Thanks. Marc.

Seithan commented 3 years ago

Hello, Could you be more specific? And please read the documentation as you might find what you are looking for.

nodoubtman commented 3 years ago

Hello, i mean how to change Picture ( p0, p1, p2, etc...)

It's not written in the docs

thanks. Marc.

Seithan commented 3 years ago

Hello, In picture components, there is a numeric attribute "pic", where the value is the id of the picture. You can use the writeNum() function, and as the documentation says: "Description: For writing numbers in numeric attributes in components of any kind (variables, textboxes, etc.)." https://github.com/Seithan/EasyNextionLibrary#function-writenum