Skip to content

Commit 94c2ca6

Browse files
author
Evert Arias
authored
Merge pull request #41 from evert-arias/dev
Update example
2 parents a302791 + 0b9e7ce commit 94c2ca6

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

examples/Interrupts/Interrupts.ino

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
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()
2626
void 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

3232
void 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
}

examples/InterruptsOnPressedFor/InterruptsOnPressedFor.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
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()
2121
void 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

2727
void setup() {

0 commit comments

Comments
 (0)