Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of libTCS34725 by
Revision 6:79996efbdcb2, committed 2017-03-31
- 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 |
--- 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){
--- 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)
