This project uses a 7 inch Nextion LCD display screen, Arduino Mega and a LED.
In the Nextion editor, the control is a dual-state button to turn on / off the LED via Serial.
For the wiring, connect the 5v and ground to Arduino Mega, and connect the TX and RX to Serial1 of Arduino Mega.
Source Code for video
https://drive.google.com/file/d/170-V...
Nextion 4.3 Inch LCD-TFT HMI LCD Display Screen
https://s.click.aliexpress.com/e/_omF...
Nextion 7.0 inch Resistive LCD Touch Screen Display Screen
https://s.click.aliexpress.com/e/_c4r...