Number of ADC channels arbitrarily limited #39
Labels
conclusion: resolved
Issue was resolved
topic: code
Related to content of the project itself
type: enhancement
Proposed improvement
These lines of code:
Arduino_AdvancedAnalog/src/HALConfig.cpp
Line 166 in d989bcf
and
Arduino_AdvancedAnalog/src/AdvancedAnalog.h
Line 38 in d989bcf
(also referenced, here:
Arduino_AdvancedAnalog/src/AdvancedADC.h
Line 39 in d989bcf
limit multi-channel sampling to a sequence of max length 5. The STM32H7 actually supports 16 channels (accordingly #defines up to
ADC_REGULAR_RANK_16
exist), and arguably the feature is most useful when more than a handful of pins are involved.Now, I am not quite sure what is the long term plan for cross-hardware support in this library. Depending on that, the proper fix will either be a plain adjustment of the values, or a small mess of #ifdefs.
The text was updated successfully, but these errors were encountered: