4.7 Using the Red LED and 7-SEG LED Display
The I-7188XAD includes a 5-digit 7-segment LED, together with a
decimal point, which can be switched on or off using software. Each
digit of the LED is numerically identified from left to right using the
numbers 1 to 5, and is individually programmable, which can be very
useful in real world applications and can be used to replace a monitor or
touch screen in many applications.
Before attempting to use the LED, the Init5DigitLed() function must first
be called, then the Show5DigitLed() function can be used to display
data. The code required to display "7188d" on 5-digit 7-segment LED is
as follows:
Init5DigitLed();
Show5DigitLed(1, 7);
Show5DigitLed(2, 1);
Show5DigitLed(3, 8);
Show5DigitLed(4, 8);
Show5DigitLed(5, 13); /* The ASCII code for 'd' is 13 */
Refer to the demo programs in the
CD:\Napdos\7188XABC\7188XA\Demo\BC_TC\LED folder for more
information.
I-7188XA Series User's Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) --- 63