Hi Everyone,
I'm using nrf52832(SOC) and LIS3DH accelerometer to get a motion detection.
I need simple code to get accelerometer data only using I2C communication.
Waiting for your valuable suggestions...
Thanks & Regards,
Yuvaraj
Hi Everyone,
I'm using nrf52832(SOC) and LIS3DH accelerometer to get a motion detection.
I need simple code to get accelerometer data only using I2C communication.
Waiting for your valuable suggestions...
Thanks & Regards,
Yuvaraj
Thank you Amanda...
But, i need just simple code to get only accelerometer data and print the values in Segger Embedded Studio console.
I want to check my accelerometer can detect the values.
Can you have like this?
Regards,
Yuvaraj
No, but you can modify from TWI Sensor Example which use the I2C interface by communicating with the thermometer (LM75).
-Amanda
Thank you Amanda...
How can I print the data from the accelerometer?
Regards,
Yuvaraj
It's printed in data_handler() function. So it should be printed over UART(it's enabled as the default backend in that example)
This case maybe can help you.
-Amanda