mirror of
https://github.com/arduino/Arduino.git
synced 2024-12-01 12:24:14 +01:00
Updated notes in digitalInputPullup
This commit is contained in:
parent
c9ded42197
commit
a46facad70
@ -37,8 +37,8 @@ void loop(){
|
|||||||
Serial.println(sensorVal);
|
Serial.println(sensorVal);
|
||||||
|
|
||||||
// Keep in mind the pullup means the pushbutton's
|
// Keep in mind the pullup means the pushbutton's
|
||||||
// logic is inverted. It goes HIGH when it's pressed,
|
// logic is inverted. It goes HIGH when it's open,
|
||||||
// and LOW when it's not. Turn on pin 13 when the
|
// and LOW when it's pressed. Turn on pin 13 when the
|
||||||
// button's pressed, and off when it's not:
|
// button's pressed, and off when it's not:
|
||||||
if (sensorVal == HIGH) {
|
if (sensorVal == HIGH) {
|
||||||
digitalWrite(13, LOW);
|
digitalWrite(13, LOW);
|
||||||
|
Loading…
Reference in New Issue
Block a user