Skip to content

Commit 563d9c9

Browse files
committed
IO: interrupts & noInterrupts need class name
Caught by forum member Bhargav.
1 parent 27a6b96 commit 563d9c9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

content/api_en/LIB_io/GPIO_interrupts.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@ void draw() {
2727
}
2828
2929
void pinEvent(int pin) {
30-
noInterrupts();
30+
GPIO.noInterrupts();
3131
println("Received interrupt on pin" + pin);
3232
if (bgcolor == 0) {
3333
bgcolor = color(255);
3434
} else {
3535
bgcolor = color(0);
3636
}
3737
// re-enable interrupts
38-
interrupts();
38+
GPIO.interrupts();
3939
}
4040
4141
]]></code>

content/api_en/LIB_io/GPIO_noInterrupts.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@ void draw() {
2727
}
2828
2929
void pinEvent(int pin) {
30-
noInterrupts();
30+
GPIO.noInterrupts();
3131
// no other interrupt will disturb us
3232
println("Received interrupt on pin" + pin);
3333
if (bgcolor == 0) {
3434
bgcolor = color(255);
3535
} else {
3636
bgcolor = color(0);
3737
}
38-
interrupts();
38+
GPIO.interrupts();
3939
}
4040
4141
]]></code>

0 commit comments

Comments
 (0)