Skip to content

Commit a46faca

Browse files
committed
Updated notes in digitalInputPullup
1 parent c9ded42 commit a46faca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build/shared/examples/2.Digital/DigitalIputPullup/DigitalIputPullup.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ void loop(){
3737
Serial.println(sensorVal);
3838

3939
// Keep in mind the pullup means the pushbutton's
40-
// logic is inverted. It goes HIGH when it's pressed,
41-
// and LOW when it's not. Turn on pin 13 when the
40+
// logic is inverted. It goes HIGH when it's open,
41+
// and LOW when it's pressed. Turn on pin 13 when the
4242
// button's pressed, and off when it's not:
4343
if (sensorVal == HIGH) {
4444
digitalWrite(13, LOW);

0 commit comments

Comments
 (0)