]> www.fi.muni.cz Git - openparking.git/blobdiff - firmware/firmware.c
LEDs moved to the final destination.
[openparking.git] / firmware / firmware.c
index ce4a91486cda276c43235dca59fd77b373af6bd3..2019402b56c834bdeabf27899f311abe92615924 100644 (file)
@@ -97,12 +97,10 @@ static void led_set(uint8_t led, uint8_t state)
 {
        if (led == 0) {
                if (state) {
-                       PORTD |= _BV(PD4);
-                       // PORTC |= _BV(PC5);
+                       PORTC |= _BV(PC5);
                        led_bitmap |= 1;
                } else {
-                       PORTD &= ~_BV(PD4);
-                       // PORTC &= ~_BV(PC5);
+                       PORTC &= ~_BV(PC5);
                        led_bitmap &= ~1;
                }
        } else {
@@ -169,8 +167,6 @@ int main()
        DDRD |= _BV(PD7); // Trig D
        DDRB |= _BV(PB4) | _BV(PB5); // Trig B, LED 2
        DDRC |= _BV(PC4) | _BV(PC5); // Trig C, LED 1
-       // temporary LED
-       DDRD |= _BV(PD4);
 
        // set up the timer
        TCCR1A = 0;