Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- GICR = (1<< INT0);
- MCUCR = (1 << ISC01) | (1<< ISC00 );//Page66
- ISR(INT0_vect)
- {
- char signal2;
- signal2 = (PIND) & 0x40;
- if (signal2 == 0)
- {
- //printf_P(PSTR("b"));
- encoder = encoder+1 ;
- }
- else
- {
- // printf_P(PSTR("f"));
- encoder = encoder -1;
- }
- }
Add Comment
Please, Sign In to add comment