Hello, I have a simple Yes, No question. Can i use the Analog In pins in the Arduino UNO as digital or analog. I know i can use analog pins as digital. Can i use the Analog IN as digital? I berely ran out of pins! Thanks
Yes, just do a digitalRead() on your analog pins. Works exactly the same as the digital pins.
Oh. I’m sorry, i was not very clear. I actually ment to use the Analog IN to send a signal, rather than reading one! Thanks
Analogue pins of the Uno are just digital pins with the added functionality of analogue-in.
You can use them as
analogue-in, or digital-in, or digital-out.
You can use A0, A1, A2, etc. or 14, 15, 16, etc.
Oh ok. Perfect! Thanks a lot!
A0-A5 can be used as digital out, just use digitalWrite().
A6 and A7 are analog in only (not broken out on the Uno).