Teknologiskolen

RC2019 – Switch example – 2

Explanation: The code reads and prints whether the switch connected to pin A5, is up or down. The delay limits the possibility of the switch bouncing between the two states.