Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void setup() {
- DDRD |= (1<<DDD2);
- }
- void loop() {
- if (PIND & (1<<PIND4))
- PORTD &= ~(1<<PD2);
- if (!(PIND & (1<<PIND4)))
- PORTD |= (1<<PD2);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement