Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
231 | killagreg | 1 | #ifndef _LED_H |
2 | #define _LED_H |
||
3 | |||
4 | #include <avr/io.h> |
||
5 | |||
6 | #ifdef USE_SDLOGGER |
||
7 | #define LEDRED_OFF PORTB |= (1<<PORTB0) |
||
8 | #define LEDRED_ON PORTB &= ~(1<<PORTB0) |
||
9 | #define LEDRED_TOGGLE PORTB ^= (1<<PORTB0) |
||
10 | #endif |
||
11 | |||
12 | #ifdef USE_FOLLOWME |
||
284 | killagreg | 13 | #define LEDGRN_OFF PORTB |= (1<<PORTB1) |
14 | #define LEDGRN_ON PORTB &= ~(1<<PORTB1) |
||
15 | #define LEDGRN_TOGGLE PORTB ^= (1<<PORTB1) |
||
231 | killagreg | 16 | |
284 | killagreg | 17 | #define LEDRED_OFF PORTB |= (1<<PORTB0) |
18 | #define LEDRED_ON PORTB &= ~(1<<PORTB0) |
||
19 | #define LEDRED_TOGGLE PORTB ^= (1<<PORTB0) |
||
231 | killagreg | 20 | #endif |
21 | |||
22 | void LED_Init(void); |
||
23 | |||
24 | #endif //_LED_H |
||
25 |