User Tools

Site Tools

한국어

cubloc:csgxput:index

CSGXPut

CSGXPut slaveAddress, digit, data

slaveAddressCSG I2C slave address
digitDigit (0 through 3)
data Bit array with each position corresponding to an LED segment

Model : CSG (7 Segment module)

This command turns on the LED at the specified position. When displaying anything other than numbers, this command can be used to control each LED segment individually.

Bit 7 6 5 4 3 2 1 0
LED H G F E D C B A

To print an “L”, positions D, E, and F must be turned on, corresponding to but positions 3, 4, and 5. Therefore the bit value would be 0011 1000, which in hexadecimal is &H38.

CSGXPut 0, 0, &H38    'Display an 'L'

Go CUBLOC home

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