Arduino reads on / off switches, rotary encoders and buttons when pressing continues I use this code to read switches for FSX