16-channel I2C constant current LED sink driver

Fork of TLC59116 by Sille Van Landschoot

Revision:
1:c285b2c57b2e
Parent:
0:52a1996ad711
Child:
2:daabe2fe9b1d
--- a/TLC59116.cpp	Thu Dec 03 07:57:50 2015 +0000
+++ b/TLC59116.cpp	Sat Dec 19 10:41:07 2015 +0000
@@ -1,8 +1,17 @@
 #include "TLC59116.h"
 
+TLC59116::TLC59116(I2C &_i2c, int _address): i2c(_i2c), address(_address)
+{
+    initialize();
+}
 
 TLC59116::TLC59116(PinName sda, PinName scl, int _address): i2c(sda, scl), address(_address)
 {
+    initialize();
+}
+
+void TLC59116::initialize()
+{
     // oscillator set to normal mode 
     enable();
     // enable individual brightness and group dimming