By using this simple capacitor-network circuit and software, designs using the Arduino Uno need only two I/O pins to read a hex-switch decoder, leaving the remaining pins for other functions. A pulse-width-modulated (PWM) signal and the RC-charging ...