File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -27,15 +27,15 @@ void draw() {
2727}
2828
2929void 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 >
Original file line number Diff line number Diff line change @@ -27,15 +27,15 @@ void draw() {
2727}
2828
2929void 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 >
You can’t perform that action at this time.
0 commit comments