Author Topic: DigiX not finding I2C decives or reading RX/TX  (Read 11017 times)

gogol

  • Sr. Member
  • ****
  • Posts: 398
Re: DigiX not finding I2C decives or reading RX/TX
« Reply #15 on: May 22, 2014, 11:52:53 pm »
All programs using the return code from Wire.endTransmission() are currently broken on the DUE/DigiX.
Wire.endTransmission() returns the number of bytes and not an error code, like in the AVR based implementation.

http://forum.arduino.cc/index.php?topic=144700.0
https://github.com/arduino/Arduino/pull/1994

So your scanner-code is not so helpful.

When the EEprom example code works, you might have nothing broken.   To drive 5V shield you need an level converter however!

« Last Edit: May 23, 2014, 02:18:48 am by gogol »

rholt

  • Newbie
  • *
  • Posts: 35
Re: DigiX not finding I2C decives or reading RX/TX
« Reply #16 on: July 01, 2014, 07:10:53 pm »
This is sort of related to the "possible burned out SDA & SCL pins" on the Digix...
is it possible to check and use the SDA1 & SCL1 pins? if so - how would they be addressed in the script using I2C?

thanks,
Russ from Florida.

digistump

  • Administrator
  • Hero Member
  • *****
  • Posts: 1465
Re: DigiX not finding I2C decives or reading RX/TX
« Reply #17 on: July 01, 2014, 09:46:04 pm »
change all references to Wire to Wire1 - including in the libraries being used - so Wire.begin() becomes Wire1.begin() and so on