Pure analog pins on m4 core not working?

I can’t figure out how to use analog inputs A8-A11on the m4 core, any hints?

Using analogRead(A8) gives the compilation error:
Undefined referene to analogRead(pureAnalogPin)
Undefined reference to A8

They are available on the m7 core if I write analogRead(8/9/10/11), but not when following a pin name convention on analog pins A0-A7.

So analogRead(8) works on the m7 and compiles on the m4 but doesn`t read the input as it does on m7 core.

What`s the problem?

Hi @melkerpetterson This may be worth trying A9 analogRead(PureAnalogPin) issue with M4 core

Thanks, that worked!

That's good to know - I never got a response on the other thread.

1 Like