MechanicalLumber
New member
First post, I've used Teensy on other projects but not with i2c. I'm not sure what's going on here but it's probably pretty simple.
Teensy 3.2 talking to a MAXREFDES117 pulse ox chip on eval board. It comes with stock code for the Uno and I've been attempting to convert it to the Teensy. Below is the output of the stock code I'm trying to emulate.
Here is the code I'm using:
And here is the result:
My question is: Why are address 0x57 and data 0x00 written after the read attempt? Uncommenting Wire.read() changes nothing. Same issue with 100 kHz clock. Same issue with standard Wire library.
Thanks in advance.
Teensy 3.2 talking to a MAXREFDES117 pulse ox chip on eval board. It comes with stock code for the Uno and I've been attempting to convert it to the Teensy. Below is the output of the stock code I'm trying to emulate.
Here is the code I'm using:
Code:
#include <i2c_t3.h>
void setup() {
Wire.begin();
Wire.setClock(25000);
}
void loop() {
Wire.beginTransmission(0x57);
Wire.write(0x00);
Wire.endTransmission(false); // start repeat
Wire.requestFrom(0x57,1);
//byte blah = Wire.read();
Wire.endTransmission();
delay(5000);
}
And here is the result:
My question is: Why are address 0x57 and data 0x00 written after the read attempt? Uncommenting Wire.read() changes nothing. Same issue with 100 kHz clock. Same issue with standard Wire library.
Thanks in advance.