====== csgPrint ======
''void csgPrint(u8 csgSlaveAdr, char *formatString[, arg0, ..., argn])''
|csgSlaveAdr: Slave address of the CSG device |
|formatString: A character string to be printed that can optionally contain format specifiers |
|arg0,...,argn: An optional set of arguments to be used by format specifiers.|
Prints a character string, formatStrng, on the CSG device on address csgSlaveAddress. formatString can
contain format specifiers just like the printf function. See the printf function for more details.
NOTE: CSG devices can only display ASCII characters 0x30~0x39 and 0x41-0x4F.
int a = 123;
csgPrint(0, " %4d", a);
{{ :moacon:csgprint:csgprint1.png?nolink |}}
int a = 123;
csgPrint(0, "%04d", a);
{{ :moacon:csgprint:csgprint2.png?nolink |}}
int a = -123;
csgPrint(0, "%04d", a);
{{ :moacon:csgprint:csgprint3.png?nolink |}}
===== CSG (7 Segment module) =====
{{ :moacon:csgnput:csg_modules.png?nolink |}}
http://www.comfiletech.com/ledmodule/
The CSG library is used to display information on Comfile Technology's 7-segment display devices. Each
CSG device must have a unique I2C slave address configured by a dipswitch on the back of the device.
Up to 4 CSG devices can be daisy-chained together to make a longer composite display. Each device must
have a different slave address.
{{ :moacon:csgnput:csgarray.png?nolink |}}
{{ :moacon:csgnput:csgdipsw.png?nolink |}}
[[MOACON:index#System_Library:|go MOACON home]]