mbed library for the TCA9548 mux
Fork of libTCS34725 by
Diff: TCS34725.h
- Revision:
- 2:cc2c0831a763
- Parent:
- 1:06c9bbbdb8b0
- Child:
- 3:afb107db7994
diff -r 06c9bbbdb8b0 -r cc2c0831a763 TCS34725.h --- a/TCS34725.h Tue Jan 24 23:25:54 2017 +0000 +++ b/TCS34725.h Wed Jan 25 19:25:28 2017 +0000 @@ -7,7 +7,8 @@ //I2C Address -#define SENSOR_ADDR 0x52 +#define SENSOR_ADDR (0x29<<1) +#define COMMAND_BIT 0x80 //Important Registers @@ -45,4 +46,6 @@ bool TCS34725_init(char intTime, char gain); void TCS34725_config(char intTime, char gain); -void TCS34725_getColor(uint16_t *r, uint16_t *g, uint16_t *b, uint16_t *c); \ No newline at end of file +void TCS34725_getColor(uint16_t *r, uint16_t *g, uint16_t *b, uint16_t *c); + +void TCS34725_DEBUG(Serial *deb); \ No newline at end of file