SparkFun RGB Sensor - BH1749NUC (SPX-14733)
The PCA9536 is a 4-bit I/O digital expander, which communicates via an I2C bus. The expander can read or write four separate I/O. This IC is used on the SparkX RGB breakout to turn on/off the various RGBW LEDs to illuminate the object under test.
This library handles the initialization of the PCA9536 and supports standard pinMode
, digitalRead
, and digitalWrite
functions.
Thanks to:
- openelectron for adding readReg() method
- tadas-s for miscellaneous cleanup
- /examples - Example sketches for the library (.ino). Run these from the Arduino IDE.
- /src - Source files for the library (.cpp, .h).
- keywords.txt - Keywords from this library that will be highlighted in the Arduino IDE.
- library.properties - General library properties for the Arduino package manager.
This product is open source!
Various bits of the code have different licenses applied. Anything SparkFun wrote is beerware; if you see me (or any other SparkFun employee) at the local, and you've found our code helpful, please buy us a round!
Please use, reuse, and modify these files as you see fit. Please maintain attribution to SparkFun Electronics and release anything derivative under the same license.
Distributed as-is; no warranty is given.
- Your friends at SparkFun.