Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void main()
- {
- setup();
- while(1)
- {
- doStuff();
- PCICR = _BV(PCIE0);
- sleep(); //powerdown
- }
- }
- ISR(PCINT0_vect)
- {
- PCICR = 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement