To get the design parameters in Section 8.2.2, the following program steps can be referred.
After VCC powering up and wait around
1ms,
- Set CHIP_EN = 1 to enable
the device(Write 01h to register 00h)
- Set MAX_CURRENT = 1h to set
51mA maximum output LED current (Write 01h to register 01h)
- Set 51mA maximum current for red LEDs,
40.8mA maximum current for green, blue and white LEDs (Write FFh to
registers 14h, write CCh to registers 15h, 16h and 17h)
- Enable all 4 LEDs (Write 0Fh to
register 02h)
- Send UPDATE_CMD to
make above step2 and step4 configurations take effect (Write 55h to
register 0Fh)
- Set red, green, blue and white LEDs PWM
duty cycle as 100%, 80%, 40% and 20% (Write FFh to register 18h,
write CCh to register 19h, write 66h to register 1Ah, write 33h to
register 1Bh)
After this step, the red, green, blue and white LEDs are turned on with
100%, 80%, 40% and 20% PWM duty cycle.