]> www.fi.muni.cz Git - openparking.git/commitdiff
LEDs moved to the final destination.
authorJan "Yenya" Kasprzak <kas@fi.muni.cz>
Fri, 22 May 2015 19:38:46 +0000 (21:38 +0200)
committerJan "Yenya" Kasprzak <kas@fi.muni.cz>
Fri, 22 May 2015 19:38:46 +0000 (21:38 +0200)
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;