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);
|
||||
|
||||
// Keep in mind the pullup means the pushbutton's
|
||||
// logic is inverted. It goes HIGH when it's pressed,
|
||||
// and LOW when it's not. Turn on pin 13 when the
|
||||
// logic is inverted. It goes HIGH when it's open,
|
||||
// and LOW when it's pressed. Turn on pin 13 when the
|
||||
// button's pressed, and off when it's not:
|
||||
if (sensorVal == HIGH) {
|
||||
digitalWrite(13, LOW);
|
||||
|
Loading…
Reference in New Issue
Block a user