drivers/led_stdout/led_stdout.c
author lbessard
Fri, 26 Jan 2007 08:54:02 +0100
changeset 72 68524f7c58b5
parent 15 e930a0e817de
permissions -rw-r--r--
Code for avoiding possible problem on Window while importing html module
Add possibility to load CanOpen DS-301 Help even if no index is selected
/***************************************************************************/
#include <data.h>
#include <led.h>

void led_set_redgreen(CO_Data *d, unsigned char state)
{
        if (state & 0x01)
                printf("\e[41m ERROR LED ON \e[m          ");
        else
                printf("\e[31m error led off \e[m         ");

        if (state & 0x02)
                printf("\e[34;42m RUN LED ON \e[m\n");
        else
                printf("\e[32m run led off \e[m\n");
}