The most common method for interfacing multiple switches – multiplexing – allows for the connection of (N/2)2 switches with N microcontroller I/O lines. The method described below, which has its roots in an LED interface technique commonly known as “Charlieplexing,” makes it possible to interface...