This program makes use of a potentiometer along with a RGB LED in order to precisely control the brightness of the LED. Turning the potentiometer changes the brightness. A1 port goes to a pair of LEDS ...
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 as 0 or 1, 0 meaning the button is not pressed and 1 that the button is ...