author | dejoigny |
Wed, 17 May 2006 20:43:56 +0200 | |
changeset 13 | 0e43acff2c96 |
parent 3 | d9cf34cd6823 |
permissions | -rw-r--r-- |
0 | 1 |
/***************************************************************************/ |
3 | 2 |
#include <data.h> |
0 | 3 |
#include <led.h> |
4 |
||
3 | 5 |
void led_set_redgreen(CO_Data *d, unsigned char state) |
0 | 6 |
{ |
3 | 7 |
if (state & 0x01) |
8 |
printf("\e[41m ERROR LED ON \e[m "); |
|
9 |
else |
|
10 |
printf("\e[31m error led off \e[m "); |
|
0 | 11 |
|
3 | 12 |
if (state & 0x02) |
0 | 13 |
printf("\e[34;42m RUN LED ON \e[m\n"); |
14 |
else |
|
3 | 15 |
printf("\e[32m run led off \e[m\n"); |
0 | 16 |
} |
17 |
||
18 |