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
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
Can you please give me some sample code
We do not have any example code for that. You need to read the datasheet of the I2C device and implement the correct commands in your application to interface and configure the device.
ok sure,
Can you please give me sample code to read potentiometer.
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.