0 votes
by (220 points)
How is analogRead different than digitalRead?

1 Answer

0 votes
by (1.4k points)
Analog Input: analogRead( [analog pin] )

Unlike digitalRead() the only pins you can analogRead() on are those with a preceding 'A': A0, A1, A2, and A3. Also, instead of simply returning HIGH or LOW, analogRead() returns a number between 0 and 1023 -- 1024 possible analog values!

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
asked May 12, 2021 by analogread (220 points)
0 votes
1 answer
asked May 6, 2021 by analogread (220 points)
0 votes
1 answer
0 votes
1 answer
asked May 4, 2021 by digitalread (120 points)
0 votes
1 answer
asked Apr 27, 2021 by system (460 points)
0 votes
1 answer
0 votes
1 answer
...