Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- uint8_t input;
- while(1)
- {
- input=PIND;
- if(input&0x01)
- {
- PORTA++;
- }
- if(input&0x02)
- {
- PORTA--;
- //while(PIND&0x02){ }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement