Revision dc472500
Added LED blinking, and other fixes
toolbox/led.h | ||
---|---|---|
9 | 9 |
static inline void led_yellow() {PORTC |= _BV(PC1) | _BV(PC0);} |
10 | 10 |
static inline void led_green() {PORTC = (PORTC & ~_BV(PC1)) | _BV(PC0);} |
11 | 11 |
|
12 |
/* Starts LED blinking */ |
|
13 |
void led_blink_start(unsigned int period_ms, char n_times); |
|
14 |
|
|
15 |
/* Returns nonzero if blinking has finished */ |
|
16 |
char led_blink_done(); |
|
17 |
|
|
12 | 18 |
#endif |
Also available in: Unified diff