That is not a feature of the code, as there is a limit imposed by what pins are still free and that differs a lot between designs.
You best bet is not to add a switch but add a rotary pot to handle the display brightness - it only works with an LCD (does not work with oled display).
Hi !
How can I modify the code to add a button that allows you to turn the screen on and off when you want?
Merci.
That is not a feature of the code, as there is a limit imposed by what pins are still free and that differs a lot between designs.
You best bet is not to add a switch but add a rotary pot to handle the display brightness - it only works with an LCD (does not work with oled display).
https://www.youtube.com/watch?v=wg1SThdeXhg
Thank you for the answer.
But I put the screen oled. ;)