author | etisserant |
Wed, 10 May 2006 21:05:57 +0200 | |
changeset 1 | b3dc740b4b04 |
parent 0 | 4472ee7c6c3e |
child 3 | d9cf34cd6823 |
permissions | -rw-r--r-- |
0 | 1 |
/***************************************************************************/ |
2 |
#include <led.h> |
|
3 |
||
4 |
void led_set_redgreen(CO_Data *d, int state) |
|
5 |
{ |
|
6 |
||
7 |
printf("LEDS %d\n",bits); |
|
8 |
||
9 |
if (bits & 0x01) |
|
10 |
printf("\e[41m ERROR LED ON \e[m\n"); |
|
11 |
else |
|
12 |
printf("error led off\n"); |
|
13 |
||
14 |
if (bits & 0x02) |
|
15 |
printf("\e[34;42m RUN LED ON \e[m\n"); |
|
16 |
else |
|
17 |
printf("run led off\n"); |
|
18 |
} |
|
19 |
||
20 |