8.circuito Con Un Led (Parte 4)
8.circuito Con Un Led (Parte 4)
7 6 5 4 3 2 1 0
Bit 7 Bit 0
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
For example:
DDRD = 0b11111111;
For example:
PORTD = 0b10000000;
digitalWrite(0, HIGH);
digitalWrite(1, LOW);
digitalWrite(2, LOW);
digitalWrite(3, LOW);
digitalWrite(4, LOW); PORTD = 0b10000000;
digitalWrite(5, LOW);
digitalWrite(6, LOW);
digitalWrite(7, LOW);
But what about Arduino pins 8-13?
?
They are controlled by the DDRB and PORTB registers.