TLC59116
Last updated
Last updated
Class to control 16-channel 8-bit I2C PWM driver.
Type
Name
uint8_t
uint8_t
uint8_t
uint8_t
uint8_t
uint8_t
driver constructor.
Returns:
Return 0 if success. Non zero value means some error.
Set single channel output number "channel" with given PWM value.
Parameters:
channel Numbers 0 to 15 (16 channels).
pwm Value from 0 (off) to 255 (fully on).
Returns:
Return 0 if success. Non zero value means some error.
Set all 16 channels with one command with given PWM values.
Parameters:
data Array with 16 uint8_t items with PWM value (array element 0 = channel 0, etc).
Returns:
Return 0 if success. Non zero value means some error.
Parameters:
reg See this header file with register definitions.
Returns:
Return 0 if success. Non zero value means some error.
Default configuration also use global outputs dimming. Each output has individual (256 steps) and global dimming (256 steps) ability.
Parameters:
pwm Value from 0 (off) to 255 (fully on).
Returns:
Return 0 if success. Non zero value means some error.
The documentation for this class was generated from the following file: D:/w/hw-libs/\_libs\_/libraries/TLC59116.h
()
(PinName sda, PinName scl)
(void)
(uint8_t channel, uint8_t pwm)
(uint8_t * data)
(uint8_t reg, uint8_t value)
(uint8_t pwm)
Initialization of the driver and configuration to default state, i.e. all outputs anabled, individual and global PWM active.
Reset the chip to power on state (good to call "initialize" function to get it work).
Direct write to single register in the . Can be used to get the device to alternative configuration.