cancel
Showing results for 
Search instead for 
Did you mean: 

b-l072z-lrwan1 I2C2

FOUSS.1
Associate

Hi,

I use the DISCO-L072CZ-LRWAN1 with the current configuration:

I2C1 ==> PB8 and PB9

I2S ==> PB13, PB12 and PB15.

And I want to use the other line I2C I2C2, but the I2C2_SCL is also on the PB13 (used by I2S).

I tried to configure it with CubeMx:

0693W000001pzTFQAY.png

But, i did not found the PB10 on the Board?

There are other pins for I2C2?

Best regards.

2 REPLIES 2

I don't believe PB10/PB11 escape the module board, and not sure if they connect to anything internally.

https://community.st.com/s/feed/0D50X00009bLS7uSAG

You can attach multiple devices to I2C1, or pick two generic GPIO to bit-bang an additional I2C bus in a pinch.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
FOUSS.1
Associate

Thank you for the answer.

I have several 3.3 and 5V sensors, so I want to use I2C1 with 3.3v sensors and add I2C2 to communicate with 5V sensors.

can you explain further what you mean by: "or pick two generic GPIO to bit-bang an additional I2C bus in a pinch" ? does that solve my problem?

Best Regards.