- unsigned char bits = 0;
- switch(n) {
- case GPIO_LED1: bits = _BV(PB4); break;
- case GPIO_LED2: bits = _BV(PB2); break;
- }
+ DDRB &= ~(_BV(PB0) | _BV(PB2)); // LED4, LED5
+ PORTB &=~ (_BV(PB0) | _BV(PB2));
+
+ DDRA &= ~(_BV(PA3) | _BV(PA4)); // LED6, LED7
+ PORTA &=~ (_BV(PA3) | _BV(PA4));
+}