Advertisement
Guest User

Untitled

a guest
Jun 7th, 2012
20
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  1. uint8_t input;
  2. while(1)
  3. {
  4. input=PIND;
  5. if(input&0x01)
  6. {
  7. PORTA++;
  8. }
  9. if(input&0x02)
  10. {
  11. PORTA--;
  12. //while(PIND&0x02){ }
  13. }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement