­

Seven-Segment Display

    Description

    char SIM_SevenSegmentValue;                  // Variable to store the value of Seven Segment 
                                                 // This will bind to Virtual Device Seven Segment control variable

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

    char UpdatedSevenSegment(char UserValue) // Function to Update Seven Segment as per User value
    {
        SIM_SevenSegmentValue = UserValue + 48;
        return SIM_SevenSegmentValue;
    }

    void main()
    {
        InitVirtuoso();

        UpdatedSevenSegment(4);        //Display '4' on 7-segment display

        while (1)
        {

        }
    }