Start a new topic

adjust brightness.

I am a rookie and I can not adjust the brightness.
It is done with the varialbel dim.
I give values and varie not see the brightness of the screen.
Someone could get an example?

I do :
Dim = 0 and see no change in brightness.


Apologies and greetings.


you are doing it correct.


dim=10

means 10% of brightness.

But this does only work with a real device not in debug of nextion editor.

you can make 2 buttons with dim + and dim -

with dim button minus:

if(dims>10)

{

dims=dims-10

}


with dim button plus:

if(dims<100)

{

dims=dims+10

}


I use dims because then it will be stored for the next startup.


thats how i do it and it works perfect.


1 person likes this

 Thank you very much. Unaware that could not be done from the editor in degug mode.
A greeting.

Login or Signup to post a comment