Hello,
Please forgive my dumb question but you'll save me so much frustration if you can help. I've been trying for 48 hours already.
I've just bought the nRF52 Development Kit with the PCA10040 chip. But I can't get the nRF5SDK160098a08e2/examples/peripheral/twi_sensor/pca10040/ses/twi_sensor_pca10040.emProject example working with my UVI sensor (VEML6075).
When I build and debug (or run) it goes into an infinite loop in the LM75B_set_mode function waiting for m_xfer_done to be true. But the twi_handler callback always has NRF_DRV_TWI_EVT_ADDRESS_NACK as the event value. But it's expecting NRF_DRV_TWI_EVT_DONE to set the m_xfer_done to true.
So it goes into an infinite loop.
My sensor is correctly connected to pins 26 (SDA) and 27 (SCL). I've only changed this variable in the code: LM75B_ADDR to be 0x20
Can someone please help provide me with an example that works?
I simply need to read the sensor - not write to it. The same sensor works when I use it on the Adafruit feather.
Please ask me any questions to want to clarify my request?
Thank you for reading.
John