Hello people,
I am working on a project that uses a MEGA 2560 R3 , a Nextion 4.3 display to control a bunch of stuff and read sensors (TDS sensor, Temperature sensor, motor controller, MP3 sound...)
I am a newbie with arduino but I am getting familiarized with it.
I am using the "Easy Nextion Library" for the Nextion display.
I am trying to simulate a LED to change color from Green to Red by using a Dual-state button (bt9) in Nextion configured with "crop images". The crop images (LED) change from picc=2 to picc2=1 depending of the Dual button state.
I tried using:
myNex.writeNum("bt9.picc", 2); // Set button bt9 color to RED
or
Serial1.print("bt9.picc2=1"); // Nextion display is using Serial1 of the Mega...
But it's not doing anything.
I was successful having the MEGA 2560 R3 board displaying sensor readouts in different text fields on the Nextion display, but can't figure out how to have the arduino change the Dual-button state.
Here is a screenshot of the Dual-button attribute:
Do I need a different Nextion Library to be able to do this?
Any help on this would be appreciated.
Cheers,