How to use SPI to read/write specific slave register
Posted: Mon Jul 22, 2019 3:31 am
Hi,
I am trying to extract data from lsm6dsl. In order to read the data out, I first need to configure the IMU, which means I need to write/read some value to its register. However, from the the Micropython SPI library, I did not see(I might missed) how to read or write from slaves' specific register address. The library is mostly transferring the data to the slave, but not some specific register. I am wondering if anyone has done something similar? Thank you very much for your time and help
Best
I am trying to extract data from lsm6dsl. In order to read the data out, I first need to configure the IMU, which means I need to write/read some value to its register. However, from the the Micropython SPI library, I did not see(I might missed) how to read or write from slaves' specific register address. The library is mostly transferring the data to the slave, but not some specific register. I am wondering if anyone has done something similar? Thank you very much for your time and help
Best