Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: tlc59108.h
- Revision:
- 1:b204db0e7687
- Parent:
- 0:8edf69cf40fc
- Child:
- 2:38e938dbb50a
--- a/tlc59108.h Wed Jan 04 06:15:55 2017 +0000
+++ b/tlc59108.h Wed Jan 04 06:17:28 2017 +0000
@@ -201,9 +201,9 @@
return status;
}
- uint8_t setBrightness(const byte dutyCycles[])
+ uint8_t setBrightness(const byte dutyCycles[], const uint8_t length = NUM_CHANNELS)
{
- return setRegisters(REGISTER::PWM0::ADDR, dutyCycles, NUM_CHANNELS);
+ return setRegisters(REGISTER::PWM0::ADDR, dutyCycles, length);
}
uint8_t setGroupBrightness(const uint8_t dutyCycle)