Since the analog capable pins are also digital pins, yes - just use digitalRead() on their unique
names (A0, A1 etc). Using 0, 1 for analog pin numbers only works for analogRead(), note.
Since the analog capable pins are also digital pins, yes - just use digitalRead() on their unique
names (A0, A1 etc). Using 0, 1 for analog pin numbers only works for analogRead(), note.