i2c RGBW led driver push/pull or opendrain output

Fork of PCA9633 by Mederic Melard

Files at this revision

API Documentation at this revision

Comitter:
mederic
Date:
Tue Jun 26 08:54:11 2018 +0000
Parent:
2:651ace168465
Commit message:
remove debug printf message

Changed in this revision

PCA9633.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/PCA9633.cpp	Mon Jun 25 07:55:37 2018 +0000
+++ b/PCA9633.cpp	Tue Jun 26 08:54:11 2018 +0000
@@ -38,7 +38,7 @@
 }
 
 void PCA9633::config(bool invert, bool openDrain){    
-    char buf[3] = {PCA9633_REG_MODE2,0,0};
+    char buf[2] = {PCA9633_REG_MODE2,0};
     _i2c->write(_addr,buf,1);          //cmd to read mode2 
     _i2c->read(_addr, &buf[1],1);      //stock in buf[1]