Little basic question about i2c with SAM3X8E

1 post / 0 new
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hello everyone


I am trying to learn how to link an Arduino DUE board (with a SAM3X8E) with a temperature sensor via i2c


So far, I only found the twi library which I didn't manage to use ( I didn't understand what the parameters were).


I was advised on another forum to use the Wire library of arduino, but the C / C++ mix didn't seem to work well together...


So my question is: could someone explain to me how the twi library works, and/or have some simple code that could help me understand how I2C works?


Thanks in advance