mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-16 11:21:18 +03:00
Updated notes in digitalInputPullup
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user