User Tools

Site Tools




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);

int a = 123;
csgPrint(0, "%04d", a);

int a = -123;
csgPrint(0, "%04d", a);

CSG (7 Segment module)

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.

go MOACON home

moacon/csgprint/index.txt · Last modified: 2016/04/14 11:07 (external edit)