Hello,
What is the state in i2c port when using energia?
There is wire library, which appears not to work (MSP430F5529)
There is also jrowbergs i2cdev lib library, which also would not compile (missing i2c.h) - what does this library do?
I have uploaded the sample code below and attempted to measure i2c outputs on both F5529 and stellaris launchpad.
I have not been able to measure anything unfortunately. (Maybe the pins need to be pulled up?)
#include <Energia.h>
#include <Wire.h>
boolean state = false;
void setup() {
Wire.begin();
pinMode(P2_3, OUTPUT);
}
void loop() {
Wire.beginTransmission(4);
Wire.write(0xff);
Wire.write(0xff);
Wire.endTransmission();
if(state) {
state = false;
digitalWrite(P2_3, HIGH);
} else {
state = true;
digitalWrite(P2_3, LOW);
}
delay(1);
}