Pardon Me for Interrupting (Part Deux)
You've conquered timer interrupts in Pardon Me, part 1. Now, keep that timer synced to an external source with pin change interrupts.
Components and supplies
1
Arduino UNO
1
LED (generic)
1
Pushbutton Switch, Momentary
1
Resistor 1k ohm
Tools and machines
1
ATmega328P data sheet
Project description
Code
Sync'd LEDs using timer and pin change interrupts.
arduino
A demonstration sketch for setting up interrupts on the ATmega328.
Downloadable files
External LED
How to attach the external LED.
External LED

Self-Triggering Sync
Attaching output to input.
Self-Triggering Sync

LED and Switch
Adding a momentary push-button switch.
LED and Switch

Self-Triggering Sync
Attaching output to input.
Self-Triggering Sync

External LED
How to attach the external LED.
External LED

LED and Switch
Adding a momentary push-button switch.
LED and Switch

Comments
Only logged in users can leave comments