Advertisement
Guest User

Untitled

a guest
Mar 27th, 2017
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. PORTB &= ~(1 << PINB1);
  2.  
  3. DDRB |= (1 << DDB1); // LED ON (DDRB set as OUTPUT) --> sink
  4. DDRB &= ~(1 << DDB1); // LED OFF (DDRB set as INPUT) --> float
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement