Analogue pin to digital

Hi all, sorry for such a basic question, I’m new to this platform and product.
I was wondering if the analogue pins on the photon can be programmed as digital like arduino. I.e to make analogue pin 1 digital it would be programmed as digital pin 10.

All advise welcome and appreciated.

Thanks
Mark

Yes, digital operations are the fundamental capability common to all of the GPIO pins on Particle devices.
You just use pinMode(A0, OUTPUT) and digitalWrite(A0, HIGH) as you would do with any D# pin too.
There is no alternative “pin name/number” required in order to use the digital capabilities.