Hi,
I want to read 4 - ADC input channels (12-bit or 14-bit) from Bluefruit nRF52832 feather using sketch code. Can you point a sample code to do this?
I could read default one channel(using example sketch code found in the BSP IDE guide) given below and it works. I want to expand this and read 4 -ADC channels A0, A1, A2 and A3.
Appreciate your help.
int adcChn0In = A0;
int adcValue = 0;
float microV_per_lsb = 1200.0F/16384.0F; //14-bit ADC with 1.2V reference voltage
analogReference(AR_INTERNAL_1_2);
analogReadResolution(14);
adcValue = analogRead(adcChn0In);
delay(10);
Serial.print((float)adcValue * microV_per_lsb);
Serial.print(",");