Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. SIGNAL (SIG_PCINT)
  2. {
  3. int pbm = PINB;
  4.  
  5. if (pbm & (0<<PINB1)) {
  6. while (PINB & (0<<PINB1));
  7. a();
  8. // initialize
  9. }
  10. if (pbm & (0<<PINB0)) {
  11. while (PINB & (0<<PINB0));
  12. b();
  13. // send out codes
  14. }
  15.  
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement