Buttons/Switches
A switch/button will be recognised as pressed, when the desired pin is connected to GND.
See this guide for more information: https://www.arduino.cc/en/Tutorial/InputPullupSerial
(ignore the code part)
Created with the Personal Edition of HelpNDoc: Produce online help for Qt applications