Blame |
Last modification |
View Log
| RSS feed
#ifndef _LED_H
#define _LED_H
#include <avr/io.h>
#ifdef USE_SDLOGGER
#define LEDRED_OFF PORTB |= (1<<PORTB0)
#define LEDRED_ON PORTB &= ~(1<<PORTB0)
#define LEDRED_TOGGLE PORTB ^= (1<<PORTB0)
#endif
#ifdef USE_FOLLOWME
#define LEDYELLOW_OFF PORTB |= (1<<PORTB0)
#define LEDYELLOW_ON PORTB &= ~(1<<PORTB0)
#define LEDYELLOW_TOGGLE PORTB ^= (1<<PORTB0)
#define LEDRED_OFF PORTB |= (1<<PORTB1)
#define LEDRED_ON PORTB &= ~(1<<PORTB1)
#define LEDRED_TOGGLE PORTB ^= (1<<PORTB1)
#endif
void LED_Init(void);
#endif //_LED_H