-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Labels
Description
Currently analog::AnalogInput allows ADC on-demand (just by calling sample()).
AVR MCU ADC circuitry offers more interesting features, in particular "auto trigger" which allows repeated sampling on an analog input pin.
It would be nice to support this feature and propose a callback notification when e.g. latest sample has changed.
This may require refactoring of analog namespace because auto-trigger mode can work with only one analog input and shall prevent on-demand sampling while active.