arduino-libraries / MKRNB

35 stars 42 forks source link

Apparent conflict with I2C Wire library #102

Open tigoe opened 1 year ago

tigoe commented 1 year ago

I have not been able to connect to I2C devices on a MKR1500. The I2C device seems to stop responding after the MKRNB library is added to the sketch. I used a TCS34725 I2C light sensor to test, and tested with the Adafruit TCS34725 lib and Hideaki Tai's library.

Steps to test:

  1. attach sensor to board via A4 and A5
  2. run basic example sketches from sensor libraries (this one and this one). Both libraries gave sensor data
  3. Confirm MKRNB is working with this sketch
  4. Add MKRNB library and basic connection header to sketch (lines 18, 26-28 and 48-46 of this sketch)

After adding the MKRNB lines on step 4, neither I2C library would get past the sensor .begin() line. I was able to duplicate the error by loading a blank sketch on the board and repeating steps 1-4 for both sensors, but I didn't get further than that. Sadly, I had no other I2C sensors in the house to test with.

iubieta commented 4 months ago

The MKRNB has already an I2C device attached with the 0x60 address, check that you are not using that same address in other devices.