mbed library for the TCA9548 mux
Fork of libTCS34725 by
Diff: TCA9548.cpp
- Revision:
- 6:79996efbdcb2
- Parent:
- 4:cc00e3842f1b
--- a/TCA9548.cpp Thu Mar 09 18:42:41 2017 +0000 +++ b/TCA9548.cpp Fri Mar 31 15:49:30 2017 +0000 @@ -1,6 +1,6 @@ #include "TCA9548.h" -TCA9548::TCA9548() : i2c(SDA,SCL) {} +TCA9548::TCA9548() : i2c(PB_9,PB_8) {} TCA9548::TCA9548(PinName i2c_sda, PinName i2c_scl) : i2c(i2c_sda,i2c_scl) {} void TCA9548::i2cWrite8(uint8_t addr, char data){