I'm working on a project for my home office. I have an arduino uno wifi ref 2 that is connected to a LED strip, a button and a
capacitatorpotentiometer. The button is used to turn the lights on/off and change color. The potentiometer is used to change the brightness. The project is also connected to a google nest using mqtt and wifi (but thats unimportant here).
The goal of the project is to keep it always running, but of course the light can be turned on or off. My question is how do i reduce power usage when the light are turned off?
If i just put the digital output on the pins that are used by the leds strip to LOW will this make sure no power is used by the leds? I read online about the sleep function and then using a button to power the arduino back up again. How would this work (code example please, because i can't find one online)? And would this be the best way to go?
EDIT: the question about the leds turning off has been answered, does anyone have more information about the use of the sleep function with the arduino uno wifi rev2 specific?
Thanks in advanced,