Switch matrix
- ArduinoMany switches on few pins A switch matrix on the Arduino: a 4 × 4 membrane keypad scanned by our own code, arrays and nested loops, ghost keys and the diodes that remove them
- InfoButtons and switches Push buttons, microswitches, tilt and reed switches: how they work, wiring them to an Arduino with a pull-up resistor, and why contacts bounce.