====== csgPrintDot ====== ''void csgPrintDot(u8 csgSlaveAdr, u8 dot0, u8 dot1, u8 dot2, u8 dot3, char *formatString[,arg0, ..., argn])'' |csgSlaveAdr: Slave address of the CSG device | |dot0: Dot 1st from the left (0=Off, 1=On) | |dot1: Dot 2nd from the left (0=Off, 1=On) | |dot2: Dot 3rd from the left (0=Off, 1=On) | |dot3: Dot 4th from the left (0=Off, 1=On) | |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 any or all of the 4 dots (dot0~dot3) on the CSG device on address csgSlaveAddress, along with a character string, formatStrng. formatString can contain format specifiers just like the printf function. See the printf function for more details. int a = 123; csgPrintDot(0, 1,0,0,0, "%04d", a); {{ :moacon:csgprintdot:csgdot1.png?nolink |}} int a = 123; csgPrintDot(0, 0,0,1,0, "%04d", a); {{ :moacon:csgprintdot:csgndot2.png?nolink |}} ===== CSG (7 Segment module) ===== {{ :moacon:csgnput:csg_modules.png?nolink |}} https://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]]