Is there any way i can use the analog input pins of an atmega328p microcontroller to give output? All my other digital I/O pins have been used up.
Is there any way i can use the analog input pins of an atmega328p microcontroller to give output? All my other digital I/O pins have been used up.
Yup, just use them in the same way as the digital ones and it will work just fine
I think you'll also find this works
pinMode(14, OUTPUT); digitalWrite(14, HIGH); digitalWrite(14, LOW);
Mark