i2c RGBW led driver push/pull or opendrain output
Fork of PCA9633 by
Revision 3:abc759c7c7bb, committed 2018-06-26
- 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 |
diff -r 651ace168465 -r abc759c7c7bb PCA9633.cpp --- 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]