On the Git repository, there is no example code for SPI for the LSM6DSO IMU breakout board.
Can someone attach a very basic example code for the LSM6DSO SPI interface? I am completely new to all of this, but I also need this quite quickly if someone can do that.
I am also struggling with this. How do you define the CS pin? There is a begin() function but also a beginSPI() function in the sparkfun library. I followed the guide for wiring and cutting the i2c address trace but I have had no success with an arduino micro. I struggled with this for several hours yesterday trying to get more samples per second. With i2c, I have only been able to read a little less than 1000 samples per second. I am hoping i2c is the bottleneck and switching to SPI will be faster. Example code will be really helpful. I think there is more to it than just changing from the wire library to the SPI library.
@TS-Russell, it seems there must be more to just cutting the jumper for 0x6B, and commenting out Wire. That’s why I think someone should submit the example code, because like another reply says, we have to set the CS pin and I dont see how we would implement that. Thanks for the help!