|
Post by bluesbrosfan on Oct 28, 2018 11:18:31 GMT -8
Please pardon any ignorance displayed below and tactfully steer me towards an appropriate resource. Has anyone been able to use the Thuderboard with an Arduino MKR series board (such as the WIFI 1000 or 1010) that use the SAMD21 chip? The library from switchdoc uses the Wayne Truchsess I2C library ca 2012. I am unable to get this to compile for the MKR board. This appears to be at least in part because the I2C library used by the official Thunderboard library uses the direct port manipulation techniques described here: www.arduino.cc/en/Reference/PortManipulationThis technique is specific to the ATmega chip on the older Arduino board, such as the Uno. I would expect that, in order to get the Thunderboard library to work with the MKR boards, one would have to either: 1. Modify the Thunderboard library to use the standard Wire library (which I presume is not possible due to some sort of limitation of the Wire library), OR 2. Modify I2C library to work with the SAMD21. Both of the above are beyond my skill set. Has anyone else successfully used the Thunderboard with a SAMD21-based Arduino? Thanks in advance.
|
|
|
Post by SDL on Oct 29, 2018 13:28:27 GMT -8
AT SDL, we have not used any of those boards. Anybody else out there?
BP
|
|
|
Post by bluesbrosfan on Oct 30, 2018 12:56:56 GMT -8
SDL, do you happen to know if there is some reason why the I2C library was used? Is there some limitation of the Wire library that prevents it from being used with the Thunderboard? Getting the Thunderboard library to talk to the Thunderboard using Wire instead of I2C strikes me as a less daunting project that trying to get the I2C library talking to a different chipset.
|
|
|
Post by SDL on Nov 1, 2018 8:13:50 GMT -8
BluesBroFan, I too am a fan of the Blues Brothers. The chip that the Thunderboard is based on, the AS3935, is well know for it's somewhat flaky I2C interface (i.e. the chip doesn't like other things on it's I2C bus segment) and so, while I can't say for sure it had to be used, it works with that. The Wire library may also work, but we haven't tested it. Sorry we don't have more information. BP
|
|