'A6' was not declared in this scope

photon
Tags: #<Tag:0x00007f038efe3600>

#1

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?


#2

https://go.particle.io/shared_apps/5c44dd875f33c4d903000e22

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


#3

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:


#4

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.