Dear Members,
Where can I find from software development kit the example for writing and reading from I2C EEPROM ?
Thanks
Dear Members,
Where can I find from software development kit the example for writing and reading from I2C EEPROM ?
Thanks
from this code,
err_code = eeprom_write(addr, &clear_val, 1);
if (NRF_SUCCESS != err_code)
{
NRF_LOG_INFO("communication error 24C16.\r\n");
return;
}
how can I print out err_code ?
NRF_LOG_INFO("%u",err_code); ?
I got
nfo> app: Error code 33281
what's the meaning ?
The error code corresponds to NRF_ERROR_DRV_TWI_ERR_ANACK, which indicates that it received a NACK when it tried to address the sensor. There can be several reasons for this to happen. You should probably verify the communcation with the TWI scanner example first, as Awneil suggested.
TWI scanner result :
I can not see 24C16 address
Is it conflict between my LCD and 24C16 ?