MarkAlso forgot the mega 2560 has external hardware pullups to on the I2C lines I removed the pullup resistors
73, Jon G4TSN----- Original Message ----- From: "Jon Lee G4TSN" <g4tsn@xxxxxxxxxxx>
To: <minima@xxxxxxxxxxxxx> Sent: Wednesday, January 22, 2014 7:38 PM Subject: [minima] Re: Wire.h library modifications
Mark re the the wire.h (Had to edit the twi.c file to deactivate the internal pullups ) see below // activate internal pullups for twi. //digitalWrite(SDA, 1); //digitalWrite(SCL, 1); This was documented somewhere on Arduino forum 73, Jon----- Original Message ----- From: "Mark G0MGX" <mark.g0mgx@xxxxxxxxx>To: <minima@xxxxxxxxxxxxx> Sent: Wednesday, January 22, 2014 6:38 PM Subject: [minima] Wire.h library modificationsHi FarhanI see comments in the code saying modifications have been made to the wire library routine.Can you explain what you have changed or provide your wire.h file? To use the modified version did you simply modify the main library file or overload the function locally?Many thanks, Mark G0MGX