Hi
I have been playing with teensy 3.1 this weekend and I simply failed to get a signal on the I2C pins.
I have tested with 2 teensy's with and without pull-up resistors (10K) and a scope to see the signal.
Basically without the pullups the scope gives a flatline on 0V and with the pullups I get a flatline one 3.3V (or 5V depending on the pull up voltae used)
Both teensy's are fresh from the package.
I used arduino 1.0.6 and teensyduino 1.20
This is the code I run for testing
This is the sample program where I added serial monitor prints to verify the program is running. The serial monitor receives the output.
I reinstalled the whole software stack (in a blank folder) to make sure no bad libraries were picked up.
Nothing seems to get me a signal.
Any help would be appreciated.
Best regards
jantje
I have been playing with teensy 3.1 this weekend and I simply failed to get a signal on the I2C pins.
I have tested with 2 teensy's with and without pull-up resistors (10K) and a scope to see the signal.
Basically without the pullups the scope gives a flatline on 0V and with the pullups I get a flatline one 3.3V (or 5V depending on the pull up voltae used)
Both teensy's are fresh from the package.
I used arduino 1.0.6 and teensyduino 1.20
This is the code I run for testing
Code:
#include <Wire.h>
void setup()
{
Wire.begin(); // join i2c bus (address optional for master)
Serial.begin(9600);
delay(5000);
Serial.println("starting");
}
byte x = 0;
void loop()
{
Serial.print("loop");
Serial.println(x);
Wire.beginTransmission(4); // transmit to device #4
Wire.write("x is "); // sends five bytes
Wire.write(x); // sends one byte
Wire.endTransmission(); // stop transmitting
x++;
delay(50);
}
I reinstalled the whole software stack (in a blank folder) to make sure no bad libraries were picked up.
Nothing seems to get me a signal.
Any help would be appreciated.
Best regards
jantje