Five Buttons On One Pin

Description This program demonstrates how to series-connect five pushbuttons over one I/O pin, so that they can all be read in parallel by taking an ADC measurement and scanning a threshold table to determine their binary pattern. The program includes automatic debounce, too. This may be accomplished with two resistor values: (5) 150 ohm and […]