Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
231 | killagreg | 1 | #include <inttypes.h> |
2 | #include "led.h" |
||
3 | |||
4 | |||
5 | // initializes the LED control outputs |
||
6 | void LED_Init(void) |
||
7 | { |
||
8 | #ifdef USE_SDLOGGER |
||
9 | // set PB0 as output (control of red LED) |
||
10 | DDRB |= (1<<DDB0); |
||
11 | LEDRED_OFF; |
||
12 | #endif |
||
13 | |||
14 | #ifdef USE_FOLLOWME |
||
15 | // set PB0 as output (control of yellow LED) |
||
16 | DDRB |= (1<<DDB0); |
||
17 | LEDYELLOW_OFF; |
||
18 | // set PB1 as output (control of red LED) |
||
19 | DDRB |= (1<<DDB1); |
||
20 | LEDRED_OFF; |
||
21 | #endif |
||
22 | |||
23 | } |