![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
I2C not yet integrated
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
Diff: main.cpp
- Revision:
- 3:34e56211d5b6
- Parent:
- 2:c9e727dcd00e
- Child:
- 4:85017622b676
--- a/main.cpp Tue Dec 06 18:34:46 2016 +0000 +++ b/main.cpp Thu Dec 08 19:58:24 2016 +0000 @@ -1,11 +1,12 @@ #include "mbed.h" -#include "LTC2991.h" +#include "LTC2991.h" #include <stdarg.h> int8_t ack; // 0 == ack, 1 == no ack const uint16_t LTC2991_TIMEOUT=1000; //!< Configures the maximum timeout allowed for an LTC2991 read. 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(PB_4, PA_8);