Created
July 10, 2014 08:55
-
-
Save maripo/fdb5dc8c5acff7ee93fe to your computer and use it in GitHub Desktop.
Attiny10 INT0 snippet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <avr/interrupt.h> | |
#include <avr/io.h> | |
ISR(INT0_vect) { | |
//Do Something | |
} | |
int main(void) { | |
EIMSK |= (1 << INT0); | |
PCMSK = (1 << PCINT0); | |
sei(); | |
while (1) { | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment