ParentFull threadblackguardx·Switches are usually connected to digital inputs with one wire as well. The other wire is connected to either power or ground. The wire to the microcontroller is either pulled up or down with a resistor to power or ground, respecively.View on HN