Hi all,
I am trying to use this library to run an accelerometer in the ESP-IDF.
Unfortunately all attempts have failed, we have the accelerometer working on an ESP32-S2-Dev module in the Arduino IDE, however we want to get it working in ESP-IDF.
The only successful reading I can get is the WHOAMI register.
I believe have narrowed the problem down to how the I2C is setup according to these instructions:
int32_t platform_write(void *handle, uint8_t Reg, const uint8_t *Bufp, uint16_t len)
int32_t platform_read(void *handle, uint8_t Reg, uint8_t *Bufp, uint16_t len)
I have attempted to use the I2C example from a previous post (We are using a new accelerometer since that post) I made but to no success.
Would anyone be able to point me in the right direction to integrate this library into ESP-IDF?
Any help is greatly appreciated.
Cheers
I2C commands not successfully reading accelerometer data
Who is online
Users browsing this forum: No registered users and 245 guests