File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 22 Name: Interrupts.ino
33 Created: 8/11/2019 11:45:52 AM
44 Author: José Gabriel Companioni Benítez (https://github.com/elC0mpa)
5- Description: Example to demostrate how to use interrupts in order to improve performance
5+ Description: Example to demostrate how to use interrupts in order to improve performance
66*/
77
88#include < Arduino.h>
@@ -26,7 +26,7 @@ void sequenceEllapsed()
2626void buttonISR ()
2727{
2828 // When button is being used through external interrupts, parameter INTERRUPT must be passed to read() function
29- button.read (INTERRUPT );
29+ button.read (EASYBUTTON_READ_TYPE_INTERRUPT );
3030}
3131
3232void setup ()
@@ -43,7 +43,7 @@ void setup()
4343 }
4444}
4545
46- void loop ()
46+ void loop ()
4747{
4848 // put your main code here, to run repeatedly:
4949}
Original file line number Diff line number Diff line change 22 Name: InterruptsOnPressedFor.ino
33 Created: 8/17/2019 10:16:52 AM
44 Author: José Gabriel Companioni Benítez (https://github.com/elC0mpa)
5- Description: Example to demostrate how to use onPressedFor functionality when using interrupts
5+ Description: Example to demostrate how to use onPressedFor functionality when using interrupts
66*/
77
88#include < Arduino.h>
@@ -21,7 +21,7 @@ void buttonPressedTwoSeconds()
2121void buttonISR ()
2222{
2323 // When button is being used through external interrupts, parameter INTERRUPT must be passed to read() function
24- button.read (INTERRUPT);
24+ button.read (EASYBUTTON_READ_TYPE_INTERRUPT);
2525}
2626
2727void setup () {
You can’t perform that action at this time.
0 commit comments