If you’ve run out of I/O pins on a project and ... [John Boxall] shows how to add four buttons using one ADC pin. The concept is nothing new. The buttons make up an R2R resistive ladder.