2021-12-01

I2C communication between RP2040 and adxl357 accelerometer ( C/C++ SDK )

I need to communicate via I2C to the adxl357 accelerometer and a few questions have arisen. Looking at the RP2040 sdk documentation I see that there is a special method to send data to a certain address, such as i2c_write_blocking(). Its arguments include a 7-bit address and the data to be sent. My question is, since the accelerometer needs a Read/Write bit, is it still possible to use this function? Or should I go to the alternative i2c_write_raw_blocking()?

Also, I don't understand the notation of the Read / Write bit, it is reported with R/#W, would that mean that 1 is Read while 0 is write?

Thanks in advance for the help.



from Recent Questions - Stack Overflow https://ift.tt/3xSsUb7
https://ift.tt/eA8V8J

No comments:

Post a Comment