changeset 93 | 16c8ceea8f18 |
parent 92 | 0d84d95790d9 |
child 94 | bdf4c86be6b2 |
92:0d84d95790d9 | 93:16c8ceea8f18 |
---|---|
1 /***************************************************************************/ |
|
2 #include <data.h> |
|
3 #include <led.h> |
|
4 |
|
5 void led_set_redgreen(CO_Data *d, unsigned char state) |
|
6 { |
|
7 if (state & 0x01) |
|
8 printf("\e[41m ERROR LED ON \e[m "); |
|
9 else |
|
10 printf("\e[31m error led off \e[m "); |
|
11 |
|
12 if (state & 0x02) |
|
13 printf("\e[34;42m RUN LED ON \e[m\n"); |
|
14 else |
|
15 printf("\e[32m run led off \e[m\n"); |
|
16 } |
|
17 |
|
18 |