Hi, I have some code written for Arduino that read values in SPI from a LSM9DS1 (9-axis IMU) and I need to make it work on a nRF51.
What I have troubles with is the library to use with the LSM9DS1. The only library I have found is the library for Arduino, but it uses the Arduino SPI library to communicate with the LSM9DS1.
I think that I need to look trought the library provided for Arduino and replace the calls to Arduino SPI library by calls to the nRF51 SPI library.
Two questions :
- Am I right, and will it be very complex ?
- Is there a library for LSM9DS1 already written for nRF51/52 that I could use ?
I have found this other question ( devzone.nordicsemi.com/.../ ), but it was only about how to import the .cpp library.
Thank you very much