I want to connect Connect ADXL345 with nRF52832 to read movement of ADXL345. I am using example code ADXL375_I2C.zip
1. Please let me know the wired connection diagram between ADXL345 and nRF52832.
2. In this code I am seeing
#define TWI_SCL_M 3 //!< Master SCL pin
#define TWI_SDA_M 4 //!< Master SDA pin
I hope TWI_SCL_M & TWI_SDA are referring to nRF52832 pins. Can I use the same pin numbers if no please let me know which pin number I need to assign for TWI_SCL_M & TWI_SDA_M from nRF52832.
const nrf_drv_twi_config_t config = { .scl = TWI_SCL_M, .sda = TWI_SDA_M, .frequency = NRF_TWI_FREQ_400K, .interrupt_priority = APP_IRQ_PRIORITY_HIGH };