Hello,
Since all the digita pins are in use I want to use the A0 as digital output to light up an IR led.
Normaly for digital pins I first define the pin number (eg Pin8) and then put the led HIGH or LOW:
int led_IR = 8;
pinMode(led_a, OUTPUT);
digitalWrite (led_a, HIGH);
When I try to do the same for analog 0 pin:
int led_IR = "A0";
pinMode(led_a, OUTPUT);
digitalWrite (led_a, HIGH);
It gives an error on the definition of led_IR. Also tried:
const char led_IR = "A0";
But also this is not working.
Who can give me the idea how to declare the constant and use it for the analog pins?
Thanks, Dries