The SAM D21 chip used on the upcoming Arduino Zero appears to have tremendous flexibility in analog differential input configuration. The datasheet says the negative input can be one of 8 analog signals and the positive can be any of the 20 analog signals, plus some internal signals.
I'm not necessarily saying the API needs to have 2 parameters. Names of all the valid combinations could be a good alternative, and it might lead to very readable code is the names are something like A3_MINUS_A6. For Arduino Zero, it seems such a list would need to define 152 names, if all the signals mentioned in the datasheet are available to the user.
--
You received this message because you are subscribed to the Google Groups "Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to developers+unsubscribe@arduino.cc.
Is changing this at runtime a useful feature or realistic scenario? I have trouble envisioning a real world application that would do this.
Regards,
Vic
To unsubscribe from this group and stop receiving emails from it, send an email to developers+...@arduino.cc.
Is changing this at runtime a useful feature or realistic scenario? I have trouble envisioning a real world application that would do this.
Throwing a precedent into the mix: analogWrite. Can take any pin number, but only works when the number's legit. Maybe Dave's original proposal could work similarly? Both could use a clear error message from the preprocessor...
--
You received this message because you are subscribed to the Google Groups "Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to developers+...@arduino.cc.
Gr.
Matthijs