The AdvancedADCDual class enables the configuration of two ADCs in Dual ADC mode. In this mode, the two ADCs are synchronized, and can be sampled simultaneously, with one ADC acting as the master ADC. Note: This mode is only supported on ADC1 and ADC2, and they must be passed to begin()
in that order.
AdvancedADCDual adc_dual(adc1, adc2);
AdvancedADC
- adc1 - the first ADC (must be ADC1).AdvancedADC
- adc2 - the second ADC (must be ADC2).void
.