From: Jan "Yenya" Kasprzak Date: Fri, 22 May 2015 19:38:46 +0000 (+0200) Subject: LEDs moved to the final destination. X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?p=openparking.git;a=commitdiff_plain;h=1d97e30f53c89725c8acf446bac51f295193d41f LEDs moved to the final destination. --- diff --git a/firmware/firmware.c b/firmware/firmware.c index ce4a914..2019402 100644 --- a/firmware/firmware.c +++ b/firmware/firmware.c @@ -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;