A feature complete driver for the PCA9952/55 LED driver from NXP.

Dependents:   PCA9955_HelloWorld

Revision:
4:6ca7ab31c5fb
Parent:
1:016f916c5579
Child:
5:7ad949955db8
--- a/PCA9955.cpp	Fri Nov 08 16:19:36 2013 +0000
+++ b/PCA9955.cpp	Fri Nov 08 16:33:36 2013 +0000
@@ -22,6 +22,12 @@
     m_I2C.frequency(400000);
 }
 
+PCA9955::PCA9955(PinName sda, PinName scl, int addr) : m_I2C(sda, scl), m_ADDR(addr)
+{
+    //Set the I2C bus frequency to 400kHz
+    m_I2C.frequency(400000);
+}
+
 bool PCA9955::open()
 {
     //Probe for the PCA9952/55 using a Zero Length Transfer