8000 Number of ADC channels arbitrarily limited · Issue #39 · arduino-libraries/Arduino_AdvancedAnalog · GitHub
[go: up one dir, main page]

Skip to content
Number of ADC channels arbitrarily limited #39
Closed
@tfry-git

Description

@tfry-git

These lines of code:

ADC_REGULAR_RANK_1, ADC_REGULAR_RANK_2, ADC_REGULAR_RANK_3, ADC_REGULAR_RANK_4, ADC_REGULAR_RANK_5

and

#define AN_MAX_ADC_CHANNELS (5)

(also referenced, here:

"A maximum of 5 channels can be sampled successively.");
)

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0