If you have allready placed a picture somewhere then you can change the picture with the command:
p0.pic=1
it change the p0 picture to picture 1
but if you have no picture in your HMI the command:
pic 0,0,1 will create the picture even if there is no HMI picture created by pressing the Picture button.
The p0.pic=1 do not work in my USART HMI 0.55 as it does in Nextion 0.55 for some reson.
the pic 0,0,1 then does what I want, I have 199 pictures I have to shift between.
pic 0,0,1 is different command which will draw duplicate of picture resource 1 on canvas at coordinates 0,0 while component.pic=1 sets the component’s pic property point to original picture resource 1.
If setting pic property makes no effect, try refresh component or report bug in editor.
If pic 0,0,1 just make a ram copy and show the picture that is usefull.
As long as I don´t fill the ram with junk when using 200 picture calls and then get ram overflow.
This forum is in no way affiliated with NEXTION®, ITEAD STUDIO®, TJC®, or anyone else really. All product names, logos, and brands are property of their respective owners. All company, product, and service names used in this website are for identification purposes only. Use of these names, logos, and brands does not imply endorsement from the respective rights holder(s).