Key / Button
Keys are the simplest and most common input device. As shown from the diagram below, KEY1 is connected to Raspberry Pi pin 12 and KEY2 is connected to Raspberry Pi pin 13. The other end of the key is connected to the ground. So when the key is not pressed, a high level (1) is […]