-
Notifications
You must be signed in to change notification settings - Fork 62
Open
Labels
enhancementNew feature or requestNew feature or request
Description
It would be great to be able to store analog pins in the array and process them sequentially.
If one needs to have multiple analog pins in the array it's not possible -- types are different and Channel trait has type-associated function.
Currently, Adc implements OneShot
trait which accepts pin.
Line 604 in 9f21c49
impl<WORD, PIN> OneShot<Adc, WORD, PIN> for Adc |
The pin argument itself is not used, but the associated function of its type
channel
(which is the channel id) is used instead.
Perhaps we can change the function to fn channel(&self)
but it might break some assumptions. Would be great to hear some input
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request