Multiple Switches, One Interrupt

Use a single interrupt to easily and simply process any number of switches, button or toggle and wired in any scheme.

Sep 14, 2021

2701 views

0 respects

Components and supplies

1

Solderless Breadboard Half Size

1

Arduino UNO

3

Tactile Switch, Top Actuated

8

Jumper wires (generic)

3

Resistor 10k ohm

3

Toggle Switch, Toggle

Apps and platforms

1

Arduino IDE

Project description

Code

Sketch With Many Switches Serviced By A Single Interrupt Service Routine (ISR)

c_cpp

Configure any number of switches of any type and any wiring scheme to work with a single ISR without any physical interrupt wiring.

Downloadable files

Multiple Switches, One ISR

Multiple Switches, One ISR

Multiple Switches, One ISR

Multiple Switches, One ISR

Comments

Only logged in users can leave comments