You can use the analog in pins as digital pins by using digital write on the analog pin's number (0-5) + 14 (so analog pin 3 is actually digital pin 17). So yes, just set the pin you need to high and you get 5v @ 40ma
You can use the analog in pins as digital pins by using digital write on the analog pin's number (0-5) + 14 (so analog pin 3 is actually digital pin 17). So yes, just set the pin you need to high and you get 5v @ 40ma