Skip to content

spacemunkay/arduino_interrupt_example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

This is an example of setting up an interrupt on an Arduino Uno.

Pin 2 (0) is the interrupt input pin.

Pin 12 - output
Pin 13 - output

This code toggles high/low on the two output pins when an interrupt is detected. When pin 12 is high, pin 13 is low and vice versa.

A delay was added in the interrupt code for testing purposes only and is not necessary. 

About

Arduino Interrupt Example

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Other 100.0%