Conversation
|
This "bug" exists on other platforms with more than 8 analog inputs as well, since the analogRead() code only adds the offset for n<=5, n=6, and n=7. |
|
Edit: Never mind. It was my own sketch that was complaining about an undefined PIN_A8. Hmm. feather m4 doesn't compile. It has NUM_ANALOG_INPUTS less than 8, so it shouldn't invoke the code that it's complaining about. |
…ns defined in the g_APinDescription[] array. adafruit#268
|
is this ready for review? |
|
It WAS ready, and I'm confident that it works for GCM4 and such, but I've recently become a bit worried that it might not work on all the new platforms with >8 analog inputs :-( |
Let's try this again...
The code in analogRead() does not not handle integer arguments of 8..15, which are valid analog pins on Grand Central. Worse, it will do "bad things", like setting PINMUX to "analog" on pins that don't even have analog support.
#236