1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-17 22:23:10 +03: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); 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);