Uh oh!
There was an error while loading. Please reload this page.
Handle analogRead(n) for n in 8..15 - #238
Conversation
WestfW
commented
Jul 18, 2020
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
ladyada
commented
Oct 30, 2020
is this ready for review? |
WestfW
commented
Nov 3, 2020
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