Skip to content

Commit abfa51d

Browse files
authored
Missing line and design change
Line got edited out by mistake and went from FALLING edge to RISING edge
1 parent c5f788f commit abfa51d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Examples/Interrupt_Example_WithBounce/Interrupt_Example_WithBounce.ino

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ int x = 0; // variable to be updated by the interrupt
1414
void setup() {
1515
//enable interrupt 0 (pin 2) which is connected to a button
1616
//jump to the increment function on falling edge
17-
attachInterrupt(0, increment, FALLING);
17+
pinMode(ledPin, OUTPUT);
18+
attachInterrupt(0, increment, RISING);
1819
Serial.begin(9600); //turn on serial communication
1920
}
2021

0 commit comments

Comments
 (0)