I tried the Bjørn's code : devzone.nordicsemi.com/.../ I didn't make it... Could you help with a simple code you've tried for adxl345 ? Thank you Yassine
I tried the Bjørn's code : devzone.nordicsemi.com/.../ I didn't make it... Could you help with a simple code you've tried for adxl345 ? Thank you Yassine
Hi,
The register addresses is close to identical, so it should not be a big problem to get it to work with ADXL345. Actually the registers that the driver uses have the exact same addresses on both ADXL375 and ADXL345.
Hi,
The register addresses is close to identical, so it should not be a big problem to get it to work with ADXL345. Actually the registers that the driver uses have the exact same addresses on both ADXL375 and ADXL345.
The version is 12.2
I have two errors, which i managed, i thought that ..., but it still not working
knowing that in nrf_drv_twi.c it's declared like this:
ret_code_t nrf_drv_twi_rx(nrf_drv_twi_t const * p_instance, uint8_t address, uint8_t * p_data, uint8_t length)
(I deleted the 'FALSE' ... )
it's declared like this:
ret_code_t nrf_drv_twi_init(nrf_drv_twi_t const * p_instance, nrf_drv_twi_config_t const * p_config, nrf_drv_twi_evt_handler_t event_handler, void * p_context) So one argument is missing.
For 2) you can add an extra NULL, e.g. ret = nrf_drv_twi_init(&m_twi_master, &config, NULL,NULL);
I can upload a KEIL project that uses the drivers if you cannot get it to work.
It's working. Thank you Sigurd