This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

twi with nrf52dk

hi

I connect AT24C02 EEPROM with nrf52dk.

I already test EEPROM with arduino and it work fine.

Now i want to communicate with NRF52DK kit,so which example I would prefer for that in seger emb. studio ??twi_master_with_twis_slave ??

I connect SCL to 27 pin ,and SDA to 26 pin.

where I Define my pins in code??

#define TWI_SCL_M 3 //!< Master SCL pin.
#define TWI_SDA_M 4 //!< Master SDA pin.

OR

#define EEPROM_SIM_SCL_S 27//31 //!< Slave SCL pin.
#define EEPROM_SIM_SDA_S 26//30 //!< Slave SDA pin.

in config.h

Would anyone help me to start my twi with nrf52dk ??

Related