Hi all,
I have a STM32F405 on the micromod ATP and want to use both the I2C (Wire) and I2C1 (Wire1) ports at the same time. I want to daisy chain four water quality sensors on Wire1 and send the data to another uC using Wire through COPI/CIPO. I have no issues with Wire, but as soon as I try to use Wire1 there is no I2C connection to my sensors and I receive blank responses. There is not an issue with my command codes because I can initialize the entire I2C chain on Wire. The only success I have had on Wire1 is using the I2C scanner from here (https://learn.sparkfun.com/tutorials/mi … okup-guide), but every sensor I connect does not initialize. I have a sparkfun ambient light sensor that I use to troubleshoot and this sensor also will not initialize. I have tried changing the pinouts for Wire1 and other variations from the example code below. Has anyone else had trouble with Wire1 on the STM32?
#include <Wire.h>
TwoWire Wire1(SDA1,SCL1); //Intialize Wire1 class