How to implement code for ADC with Potentiometer using I2C

Hi,

I am working on NRF52840, I want to read some ADC (Potentiometer) using I2C communication in NRF52840 MCU, Can you please help me, how to implement the code for this.

Thanks 

Parents Reply Children
  • How to read the potentiometer connected over I2C/TWI is described in the datasheet of the potentiometer. We do not provide code samples for every specific I2C sensors in existence, we provide general code samples that shows how to use the peripheral itself (for instance the TWI Sensor example I have already linked you). It is your job to write the driver for your specific device/sensor and integrate the correct commands with the peripheral example to interface the sensor.

Related