Arduino_AdvancedAnalog - AdvancedADC

Creates an ADC object using the specified pin(s). The ADC object can sample a single channel or multiple channels successively if more than one pin is passed to the constructor. In this case, data from multiple channels will be interleaved in sample buffers. Additionally, the ADC channel of the first pin determines the ADC instance used, and the remaining channels (if any) must all belong to the same ADC instance.

Syntax

AdvancedADC adc(analogPin);

Parameters

  • Pin A0 through A11 can be used.

Returns

void.