Hi everyone,
I am using an ArduinoMega and I am having some trouble with the Wire library. I am trying to use the Arduino as a slave for my NXT but I am getting bus errors. I've been poring through the datasheets for the 1280 and comparing it with the ArduinoMega pinout and I noticed that the pins labelled SCL and SDA on the board are connected to very different ports than D0 and D1. The datasheet says D0 (SCL) and D1 (SDA) are pins 43 and 44. The ArduinoMega board has SCL and SDA connected to pins 21 and 20.
Does anyone know why this difference exists?
Regards,
Xander
Edit: upon inspection of the ArduinoMega schematic, it seems the numbers on the connectors do not correspond with the pin numbers on the controller. SDA and SCL are connected to the correct pins, it seems.