Subversion Repositories Projects

Rev

Blame | Last modification | View Log | RSS feed

#include <inttypes.h>
#include "led.h"


// initializes the LED control outputs
void LED_Init(void)
{
        #ifdef USE_SDLOGGER
    // set PB0 as output (control of red LED)
        DDRB |= (1<<DDB0);
        LEDRED_OFF;
        #endif

        #ifdef USE_FOLLOWME
        // set PB0 as output (control of yellow LED)
        DDRB |= (1<<DDB0);
        LEDYELLOW_OFF;
        // set PB1 as output (control of red LED)
        DDRB |= (1<<DDB1);
        LEDRED_OFF;
        #endif

}