I2C not yet integrated

Dependencies:   mbed

Tested working with single and differential voltages.

Connect SCL (pin 11) to D15 Connect SDA (pin 10) to D14 Connect pin 16 to +5v Connect pin 9 to gnd

Files at this revision

API Documentation at this revision

Comitter:
lrdawg99
Date:
Thu Dec 08 21:48:29 2016 +0000
Parent:
4:85017622b676
Commit message:
scl sda switch

Changed in this revision

LTC2991.cpp Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 85017622b676 -r 8aa0f4e6788c LTC2991.cpp
--- a/LTC2991.cpp	Thu Dec 08 21:42:33 2016 +0000
+++ b/LTC2991.cpp	Thu Dec 08 21:48:29 2016 +0000
@@ -77,7 +77,7 @@
     lti2c = new LT_I2C();
 }
 
-LTC2991::LTC2991(PinName i2c_scl_, PinName i2c_sda_) {
+LTC2991::LTC2991(PinName i2c_sda_, PinName i2c_scl_) {
     lti2c = new LT_I2C(i2c_sda_, i2c_scl_);
 }
 
diff -r 85017622b676 -r 8aa0f4e6788c main.cpp
--- a/main.cpp	Thu Dec 08 21:42:33 2016 +0000
+++ b/main.cpp	Thu Dec 08 21:48:29 2016 +0000
@@ -7,9 +7,9 @@
 Serial pc(USBTX, USBRX, 9600);
 
 //These pins for the nucleo nucleo f401re
-LTC2991 *ltc0 = new LTC2991(I2C_SDA, I2C_SCL);
-LTC2991 *ltc1 = new LTC2991(PB_3, PB_10);
-LTC2991 *ltc2 = new LTC2991(PA_8, PB_4);
+//LTC2991 *ltc0 = new LTC2991(I2C_SDA, I2C_SCL);
+//LTC2991 *ltc1 = new LTC2991(PB_3, PB_10);
+LTC2991 *ltc2 = new LTC2991(PB_4, PA_8);
 
 
 //void setup();