Electron's higher ADC ports compilation error

Hi Everyone,

I have hooked up my analog sensors to ADC8 on the electron. Compiler threw an error when I tried to read from A8 pin, saying “‘A8’ was not declared in this scope”. Though it had no problem with A0 through A7. Is there a pin definition we need to modify in order to use higher ADC port numbers? Thanks for the help in advance!

Regards,
Paul

The extra analog pins on the Electron are B2, B3, B4, and B5. Those pin names work with analogRead, as long as you are building for Electron.

Thanks @rickkas7!

This would be the place to look for such info
https://docs.particle.io/datasheets/electron-(cellular)/electron-datasheet/#pinout-diagram