![]() | | | | | EIC | ADC | AC | PTC | DAC | SERCOMx | SERCOMx | TCCx | TCCx | COM | AC/GLCK | | Pin number | MKR Board pin | PIN | Notes | Peri.A | Peripheral B | Perip.C | Perip.D | Peri.E | Peri.F | Periph.G | Periph.H | The SPI object will use SERCOM1 and pins 8, 9, 10 on the MRK1000: #define PIN_SPI_MISO (10u) Maybe there is a simpler approach altogether, idk Given that the wrapper is there to make the library look like a Wire library, I assume that there is some way to allow my software i2c to work with the Adafruit library? However, its gone beyond my expertise to work out how. In the Adafruit library the function def is: I interpret that its expecting a Wire object, but getting a SlowSoft Wire object. SHTC3test:23:26: error: no matching function for call to 'Adafruit_SHTC3::begin(SlowSoftWire&)' SlowSoftWire wire2=SlowSoftWire(6,7) // create bit bashed wire interface SDA2 on 6 SK2 on 7 I blithely thought I could use the Adafruit code directly like this: ![]() I have found SlowSoftWire which is a Wire like wrapper for SlowSoftI2CMaster - a bit bashed library for I2C which I proposed to used for bus2. The host board is an Arduino MKR1000.Īdafruit provide nice libraries for each sensor which assume the standard Wire interface which is fine for i2c bus1. ![]() As the SHCT3 have neither cs_ nor programmable addressing, I have to use two i2c connections - 1st with 1 SHCT3 and the BME680, and the second bus for the second SHCT3. I have a project with 1 BME680 (temp, humidity, gas, pressure sensor) and two SHCT3 temp/humidity sensors. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |