0 votes
by (120 points)
What is digitalRead in Arduino?

1 Answer

0 votes
by (1.4k points)
The digitalRead() function is used to read the logic state at a pin. It is capable to tell wether the voltage at this pin is high (~ 5V) or low (~ 0V) or, in other words, if the pin is at logic state 1 or 0 (or HIGH/LOW).

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
asked Aug 20, 2021 by adafruit (360 points)
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
asked Mar 3, 2021 by voidloop (120 points)
0 votes
1 answer
0 votes
1 answer
0 votes
0 answers
asked Dec 19, 2020 by arduino (3.7k points)
0 votes
1 answer
...