Arduino Nano can't switch relay on Analog pin

Hi all,

I have an Arduino nano and a 2-relay module (the standard opto-isolated 5v relay module).

I'm using the following code:

#define FAN_IN1 6
#define FAN_IN2 7

pinMode(FAN_IN1,OUTPUT);
pinMode(FAN_IN2,OUTPUT);
digitalWrite(FAN_IN1,HIGH);
digitalWrite(FAN_IN2,HIGH);

... do some stuff ...

digitalWrite(FAN_IN1,LOW); // This activates the relay on FAN_IN1

.. do some more stuff etc etc ...

The code and relay module work fine like this however I want to use analog pins A6-A7 rather than the digital pins. My understanding was that I could use these just like digital pins so by simply replacing the pin definition for FAN_IN1/2 with A6 and A7 I would be all set.

This doesn't seem to be the case.

Can anyone suggest what I need to do differently in order to use A6/A7?

Not on an Arduino nano.
You can only use A0-5 as digitals.

Thanks, that explains it.