'A6' was not declared in this scope

Hi folks, I’m encountering a weird compiler error when compiling for Photon (‘A6’ was not declared in this scope).

It has no problems with A0 - A5, and A7…

Copy and paste this:

const int LDRPin0 = A0;
const int LDRPin1 = A1;
const int LDRPin2 = A2;
const int LDRPin3 = A3;
const int LDRPin4 = A4;
const int LDRPin5 = A5;

const int LDRPin7 = A7; //WKP
const int LDRPin6 = A6; //DAC1

void setup() {


void loop() {


Thoughts @ScruffR?


Compiles just fine for me for a Photon on 1.0.0 :man_shrugging:

1 Like

What device OS version were you targeting?
I’ve never had problems with A6, but I didn’t try each and every version and RC :wink:

1 Like

Lol, I was compiling for a Boron. Was working on one earlier and forgot to switch targets because I’m still a ways out from deployment…works as intended now.

Thanks guys.