Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
11 years, 6 months ago.
how do i use the 2nd i2c bus?
i want to use 2 i2c busses because i have sensor operating on different levels (later on i want to do this on 1 bus with a levelshifter) i did:
I2C i2c (p28, p27); //we zetten een i2c verbinding op I2C i2c2 (p9, p10); //we zetten een i2c verbinding op
but the problem is my second "i2c2" only gives back 0. if i chance i2c with i2c2 its the other sensor who is giving back 0.
anybody has experience with this?
thnx in advance!