Hello everyoneI would like to learn how to create multiple sliders
in a page to control several led, please in a simple way since I am
new in this programming and I want to learn.
You want to learn how, but I don't see you making any effort
Asking everyone how to do it for you is not how to learn
So I see you already have the CompSlider HMI and ino
Start with that as an example - run them
When you observe and understand the one slider
then work with 5.
To control several leds is NOT a nextion problem
- this you ask in Arduino forum.
You must begin to read, and then try small steps
Build on successes and read some more.
For the Nextion Side of this equation
Start a new HMI
click the Slider component 5 times
align them so that they do not overlap each other
Click on each and in their touch release events
check the Send Component ID
Save your project. and compile to build your TFT file
Upload your TFT to your Nextion device.
Read the Nextion Instruction Set, particular attention to the Nextion Return Codes
0x65 is the touch return codes. This will let your MCU know when the use has released the slider.
0X65 Touch event return data