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 ...
Tutorial 1: Graphical LCD (128×64) Pin out, working and Applications.----https://microdigisoft.com/graphical-lcd-128x64-pin-out ...