Hello,
I can not find a good example online on how to properly configure nRF9160 DK for i2c. In order to learn the system, I am testing a simple example with the nrf9160 configured as a master to receive data from a ti tmp100 sensor as a slave. Since I cannot find basic information on how to approach this problem, I'm sure there are serious oversights in the configuration files below. Nevertheless, here they are:
CMakeLists.txt:
nrf9160_pca10090ns.overlay :
main.c (adapted from the sht3xd example included in the sdk):
I need to write 0x60 to register 0x01, and then read from register 0x00 to communicate with TMP100. I don't know if the configuration approach I have so far taken is correct.
Eventually I plan to configure the serial connection in slave mode (twis) in order to provide data to another MCU.
I used segger embedded studio. I am running this on a Windows 10 OS.