This program makes use of a potentiometer along with a RGB LED in order to precisely control the brightness of the LED.
You can read the state of a button using Arduino and a few lines of code. The actual state is shown in the Serial Monitor window ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results