cancel
Showing results for 
Search instead for 
Did you mean: 

Hi I am going to get sensor data from the BMI160 through SPI with ST32L432KC. I appreciate it if anyone can help me with how I can configure the SPI. Thanks

SKaze
Associate II
 
13 REPLIES 13

@Community member​ , Here I am going to use the wire.h library written for i2c connection. Also the pins used for SDA and SCK are as follows:

Is it true to use these two pins for i2c?

The problem I am getting is "error compiling"0693W000003Bm4UQAS.jpg

Thanks

You might want to edit that when you get home, guessing you're on a phone, or having a stroke, or drunk

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

D1 PA9 I2C1_SCL

D0 PA10 I2C1_SDA

Yes..

"Error Compiling" going to need to be more specific about the lines and code the compiler is complaining about.

Can't help you with Arduino, using Keil and C here.

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

Moved here now https://community.st.com/s/question/0D53W00000EDDzhSAH

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