Subversion Repositories Projects

Rev

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
271 killagreg 15
        // set PB0 as output (control of green LED)
231 killagreg 16
        DDRB |= (1<<DDB0);
271 killagreg 17
        LEDGRN_OFF;
231 killagreg 18
        // set PB1 as output (control of red LED)
19
        DDRB |= (1<<DDB1);
20
        LEDRED_OFF;
21
        #endif
22
 
23
}