mbed library for the TCA9548 mux

Fork of libTCS34725 by Michael Wilkens

Files at this revision

API Documentation at this revision

Comitter:
mwilkens241
Date:
Fri Mar 31 15:49:30 2017 +0000
Parent:
4:cc00e3842f1b
Commit message:
nothin changed here, just committing

Changed in this revision

TCA9548.cpp Show annotated file Show diff for this revision Revisions of this file
TCA9548.h Show annotated file Show diff for this revision Revisions of this file
diff -r cc00e3842f1b -r 79996efbdcb2 TCA9548.cpp
--- 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){
diff -r cc00e3842f1b -r 79996efbdcb2 TCA9548.h
--- a/TCA9548.h	Thu Mar 09 18:42:41 2017 +0000
+++ b/TCA9548.h	Fri Mar 31 15:49:30 2017 +0000
@@ -4,10 +4,6 @@
 
 #include "mbed.h"
 
-//These pins should be the only piece specific to the F030R8
-#define SCL            PB_8
-#define SDA            PB_9
-
 //I2C Address
 
 #define DEV_ADDR (0x70<<1)