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) |
||
333 | killagreg | 10 | |
11 | #define LEDGRN_OFF |
||
12 | #define LEDGRN_ON |
||
13 | #define LEDGRN_TOGGLE |
||
231 | killagreg | 14 | #endif |
15 | |||
16 | #ifdef USE_FOLLOWME |
||
284 | killagreg | 17 | #define LEDGRN_OFF PORTB |= (1<<PORTB1) |
18 | #define LEDGRN_ON PORTB &= ~(1<<PORTB1) |
||
19 | #define LEDGRN_TOGGLE PORTB ^= (1<<PORTB1) |
||
231 | killagreg | 20 | |
284 | killagreg | 21 | #define LEDRED_OFF PORTB |= (1<<PORTB0) |
22 | #define LEDRED_ON PORTB &= ~(1<<PORTB0) |
||
23 | #define LEDRED_TOGGLE PORTB ^= (1<<PORTB0) |
||
231 | killagreg | 24 | #endif |
25 | |||
26 | void LED_Init(void); |
||
27 | |||
28 | #endif //_LED_H |
||
29 |