Hi guys,
I defined in setup() the pinMode(A0,OUTPUT);
I know turn on the Led like digitalWrite(A4,HIGH);
But before to send HIGH or LOW, I need to check his status.
How can I check if pin A0 is LOW or HIGH?
thanks
Ayres
Hi guys,
I defined in setup() the pinMode(A0,OUTPUT);
I know turn on the Led like digitalWrite(A4,HIGH);
But before to send HIGH or LOW, I need to check his status.
How can I check if pin A0 is LOW or HIGH?
thanks
Ayres
pinA0state = digitalRead(A0);
or
pinA0state = digitalRead(14);
CrossRoads, thanks a lot for help, it worked.
Thank you
Ayres
No problem.
Which one did you end up using?