Go Down

Topic: Which I2C does the Wire Library Use  (Read 723 times) previous topic - next topic


Hi, I am new to Due, so this may sound like a stupid question. I assume Due Wire library has the same set of functions calls (ie. Wire.requestFrom() etc.). How I do I know which SCL/SDA pair the library uses since none of the function calls have an argument for pin/port numbers? Or do both SCL/SDA pairs have the identical signals?


If you are using SDA1/SCL1, you need to replace everywhere Wire by Wire1 by writing this line:

#include <Wire.h>
#define Wire Wire1



Go Up