1
0
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:
Tom Igoe 2012-03-16 08:45:29 -04:00
parent c9ded42197
commit a46facad70

View File

@ -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);