Skip to content

Instantly share code, notes, and snippets.

@maripo
Created July 10, 2014 08:55
Show Gist options
  • Save maripo/fdb5dc8c5acff7ee93fe to your computer and use it in GitHub Desktop.
Save maripo/fdb5dc8c5acff7ee93fe to your computer and use it in GitHub Desktop.
Attiny10 INT0 snippet
#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