tonybarry13
Member
Howdy all,
I am using the standard Wire library and the Example program "I2Cscanner" in the Examples with a Teensy 3.5.
Teensy 3.5 has default Wire pins as SCL0 on pin 19 and SDA0 on pin 18. I want them to be on SCL2 as pin 3 and SDA2 as pin 4. This is approved of by the Teensy docs.
The Example program i2cscanner has these lines in it
but when I run the program , there is no activity on SCL2. There is however activity on SCL0, as measured with an oscilloscope.
Yes, all pins mentioned (3, 4, 18, 19) have 4k7 pullups to 3V3.
This seems very odd. The Example program is unchanged from downloaded, except for uncommenting the two lines contaning the setSCL and setSDA.
All I can think of is that the Teensy pin 3 is not SCL2 (or perhaps I should say it has a different referring number).
Any thoughts ?
Regards, Tony Barry
I am using the standard Wire library and the Example program "I2Cscanner" in the Examples with a Teensy 3.5.
Teensy 3.5 has default Wire pins as SCL0 on pin 19 and SDA0 on pin 18. I want them to be on SCL2 as pin 3 and SDA2 as pin 4. This is approved of by the Teensy docs.
The Example program i2cscanner has these lines in it
Code:
void setup() {
// uncomment these to use alternate pins
Wire.setSCL(3);
Wire.setSDA(4);
Wire.begin();
but when I run the program , there is no activity on SCL2. There is however activity on SCL0, as measured with an oscilloscope.
Yes, all pins mentioned (3, 4, 18, 19) have 4k7 pullups to 3V3.
This seems very odd. The Example program is unchanged from downloaded, except for uncommenting the two lines contaning the setSCL and setSDA.
All I can think of is that the Teensy pin 3 is not SCL2 (or perhaps I should say it has a different referring number).
Any thoughts ?
Regards, Tony Barry