Complete the code to set pin 0 of PORTB as output.
DDRB |= (1 << [1]);
Setting bit 0 in DDRB configures pin 0 of PORTB as output.
Complete the code to write a high value to pin 2 of PORTC.
PORTC |= (1 << [1]);
Setting bit 2 in PORTC writes a high value to pin 2.
Fix the error in the code to configure pin 1 of PORTD as input.
DDRD [1]= ~(1 << 1);
Using '&=' with the negated bit clears bit 1, setting pin 1 as input.
Fill both blanks to set pin 3 of PORTB as output and write it low.
DDRB [1]= (1 << 3); PORTB [2]= ~(1 << 3);
Using '=' sets DDRB bit 3 as output by overwriting the register, and '&=' with negation clears PORTB bit 3 to write it low.
Fill all three blanks to configure pin 4 of PORTC as output, set it high, and then clear it.
DDRC [1]= (1 << 4); PORTC [2]= (1 << 4); PORTC [3]= ~(1 << 4);
Using '=' assigns exact values to DDRC and PORTC to set pin 4 output and set it high, then '&=' with negation clears the pin.