In this video, I show you how to make a brightness slider for the Nextion display. No arduino is required and all code is done on the Nextion display.
Пікірлер: 16
@leef_me81125 жыл бұрын
Great video. BTW, you can also set the 'minval' to 1 instead of adding the 'if' statement. you DO need the dims=h0.val If you use dim=h0.val (without the 's') the changes are not held during power off.
@motogeek82346 жыл бұрын
Dude... Killing it with the Nextion! Although your tuts are basic, they are very relevant to many other projects. Its all about techniques that can be used and expanded on and your methods make that very clear and consise!!!! Thanks and keep going, please!
@korbano6 жыл бұрын
Moto Geek I’m glad to hear it! I’ll be sure to keep making Nextion tutorials
@korbano6 жыл бұрын
Rolston Holas yes I can definitely do this!
@MakerFabio3 жыл бұрын
many thanks, for the brightness tip but also for how to draw a decent slide
@CleancutCampers5 жыл бұрын
Excellent tutorial again. I'm really appreciative of your Nextion videos. What i have done on mine, instead of the if statement to stop it going black, I have just set the min slider value (minval) to 1 or whatever value you want the minimum brightness to be, therefore the dim value could never go fully dark.
@korbano5 жыл бұрын
That method works too and is definitely simpler than mine!
@sebastiantamis53705 жыл бұрын
Excellent video, but if I want to control the brightness with physical buttons using arduino, as would be the instructions in arduino to increase and decrease the brightness
@altitudeap5 жыл бұрын
Your videos are great. I have implemented this slider. Could you do another video on two other subjects? First would be, i have a screen of 6 buttons that are dual state like your console project. However i only want one to be 'on' at a time. for instance if bt0 currently = 1 and then btn3 is turned to =1 it will make bt0 = 0 Secondly, i would like to know if there can be a time out on a screen. for instance if i am on the button screen and i dont touch it for x minuites, it will switch to a new screen that is black. I will make the entirety of this screen a button that if touched it will go back to the 6 button screen. Thanks again for your videos.
@NetprocoNet5 жыл бұрын
I subscribed, you are a great instructor! I would pay to take classes on the Nextion IDE but there isn't any have you considered Udemy as a platform for your classes?
@muralisubramaniam56224 жыл бұрын
Guys/Gals, can one of you help me please. I have implemented the brightness control.. When I am in the page.. it works well.. with either dim or dims. but when I exit the page the brightness returns to 100% and when I return to the brightness control page.. the slider is back to 100%.. so for me dims is not working:(. what am I missing? Do I have make h0 global and read it in every page and always program dim or dims?
@Floydf0st3r3 жыл бұрын
Change vstat from local to global.. don’t have my computer in front of me but I think that’s the name. It’ll be on the side under “object I’d”
@mertcapkin72635 жыл бұрын
how to set the brightness level only with code and not with a slider in the Nextion Editor, for example dims=80. Where do I need to put this?