IOCard Displays II Manual
www.opencockpits.com 10
Special characters and brightness:
To visualize special characters we can use specific codes on SIOC as shown:
-999999 = digit off,
-999998 = digit shows "-",
-999997 = digit shows "6" (with upper segment on),
-999996 = digit shows "t",
-999995 = digit shows "d",
-999994 = digit shows "_",
Also we can control the brightness of the digits using the value -999994 and then sending the
brightness value bettween 0 and 15.
Practical example:
// *****************************************************************************
// * Config_SIOC ver 4.01 - By Manuel Velez - www.opencockpits.com
// *****************************************************************************
// * FileName : test_displays1.txt
// * Date : 15/03/2012
Var 0002, Link IOCARD_SW, Input 1 // switch status
{
IF V0002 = 1
{
V0008 = 1 // led on
V0003 = 1 // 1 on digit 0
V0004 = 2 // 2 on digit 1
V0005 = 3 // 3 on digit 2
V0006 = 4 // 4 on digit 3
V0007 = 5 // 5 on digit 4
}
ELSE
{
V0008 = 0 // led off
V0003 = -999999 // display off
V0004 = -999999 // display off
V0005 = -999999 // display off
V0006 = -999999 // display off
V0007 = -999999 // display off
}
}
Var 0003, Link IOCARD_DISPLAY, Digit 0, Numbers 1
Var 0004, Link IOCARD_DISPLAY, Digit 1, Numbers 1
Var 0005, Link IOCARD_DISPLAY, Digit 2, Numbers 1
Var 0006, Link IOCARD_DISPLAY, Digit 3, Numbers 1
Var 0007, Link IOCARD_DISPLAY, Digit 4, Numbers 1
Var 0008, Link IOCARD_OUT, Output 11
// end of file test_displays1.txt
How we can see the operation is to easy:
-First we declare tha variable connected to the switch wich will activate or deactivate the
displays and indicator LED that will indicate if switch is on or off, then we will send the values for
show 12345 cipher.