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.
Revision 5:8aa0f4e6788c, committed 2016-12-08
- 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 |
--- 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_);
}
--- 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();