­

LED Output Example

This is a simple demo project that shows how to use LED control that can be by your application.

Description

This is a simple demo project that shows how to use virtual LED outputs controlled by your embedded code.

Click here to download complete Project File

char SIM_LEDState;                           // Variable to store the value of LED state 
                                             // This will bind to Virtual Device LED control variable

void LEDOn(char _LEDState) // Function to Set the LED State
{
    SIM_LEDState = _LEDState;
}

void InitVirtuoso()
{
#ifdef _WINDOWS
    InitializeVirtuoso();
#endif    //_WINDOWS
}

void main()
{
    InitVirtuoso();

    LEDOn(1);        // Function to turn on the LED

    while (1)
    {

    }
}