#include <Wire.h>
#define Wire Wire1
void setup() {
// put your setup code here, to run once:
Wire.begin();
pinMode(5, OUTPUT);
digitalWrite(5,1);
//ire.setClock(3400000L);
}
void loop() {
//Request Temp from the given Temp Sensor
Wire.requestFrom(0x4A, 16);
// Get the the Value
int data = Wire.read();
//Return the Value
//return data;
delay(1);
}
Whenever I comment out the #define Wire Wire1 everything works fine on the SCL and SDA lines. Is there something that I am missing to get this to work correctly on SCL1 and SDA1?
Yeah I've tried a 7.5 k and 10 k Ohm pull up and neither of them fixed the issue. I look at the line on a scope and it seemed like it was creating some pulses put they were really slow and irregular.
I'd suggest starting with 4.7K and work down from there as far as 1.5K (that's what's on SCL0 and SDA0). For my taste 1.5K is too aggressive, but that's what whoever designed the board used so it might just need that.