What are the Pin numbers for Analog pins?

I have run out of digital pins and wish to use one or two Analog pins as digital outputs.

A/ Is that allowed?

B/ How do you call them?

int myPinOne = 1; // is a digital pin
pinMode(myPinOne, OUTPUT);
int myPin14 = ???;  // analog pin A0
pinMode(myPin14, OUTPUT);

Is it acceptable to call the analog pins as 14, 15, 16, etc.?


Yes, I believe the analog pins are numbered upwards from the last digital pin (eg. 14 on a Uno).

However you can also use A0, A1, A2 and so on (as written on the board).

Kob khun mag, krab. Thanks Nick, you've saved my bacon.