Skip to content

Commit

Permalink
Fixed example "#define"s
Browse files Browse the repository at this point in the history
  • Loading branch information
jonnieZG committed Jul 26, 2019
1 parent 4351f4d commit bb80a98
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 12 deletions.
15 changes: 7 additions & 8 deletions examples/AllEvents/AllEvents.ino
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
#include "Arduino.h"

// ------- Specify required features before including the EButton.h --------
#define EBUTTON_SUPPORT_TRANSITION
#define EBUTTON_SUPPORT_EACH_CLICK
#define EBUTTON_SUPPORT_DONE_CLICKING
#define EBUTTON_SUPPORT_SINGLE_AND_DOUBLE_CLICKS
#define EBUTTON_SUPPORT_LONG_PRESS_START
#define EBUTTON_SUPPORT_LONG_PRESS_DURING
#define EBUTTON_SUPPORT_LONG_PRESS_END
// ------- Specify not required features before including the EButton.h --------
//#define EBUTTON_SUPPORT_TRANSITION_DISABLED
//#define EBUTTON_SUPPORT_EACH_CLICK_DISABLED
//#define EBUTTON_SUPPORT_DONE_CLICKING_DISABLED
//#define EBUTTON_SUPPORT_SINGLE_AND_DOUBLE_CLICKS_DISABLED
//#define EBUTTON_SUPPORT_LONG_PRESS_START_DISABLED
//#define EBUTTON_SUPPORT_LONG_PRESS_DURING_DISABLED

#include "EButton.h"

Expand Down
9 changes: 7 additions & 2 deletions examples/BasicClicks/BasicClicks.ino
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
#include "Arduino.h"

// ------- Specify required features before including the EButton.h --------
#define EBUTTON_SUPPORT_SINGLE_AND_DOUBLE_CLICKS
// ------- Specify not required features before including the EButton.h --------
#define EBUTTON_SUPPORT_TRANSITION_DISABLED
#define EBUTTON_SUPPORT_EACH_CLICK_DISABLED
#define EBUTTON_SUPPORT_DONE_CLICKING_DISABLED
//#define EBUTTON_SUPPORT_SINGLE_AND_DOUBLE_CLICKS_DISABLED
#define EBUTTON_SUPPORT_LONG_PRESS_START_DISABLED
#define EBUTTON_SUPPORT_LONG_PRESS_DURING_DISABLED

#include "EButton.h"

Expand Down
9 changes: 7 additions & 2 deletions examples/BriskyFingers/BriskyFingers.ino
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
#include "Arduino.h"

// ------- Specify required features before including the EButton.h --------
#define EBUTTON_SUPPORT_DONE_CLICKING
// ------- Specify not required features before including the EButton.h --------
#define EBUTTON_SUPPORT_TRANSITION_DISABLED
#define EBUTTON_SUPPORT_EACH_CLICK_DISABLED
//#define EBUTTON_SUPPORT_DONE_CLICKING_DISABLED
#define EBUTTON_SUPPORT_SINGLE_AND_DOUBLE_CLICKS_DISABLED
#define EBUTTON_SUPPORT_LONG_PRESS_START_DISABLED
#define EBUTTON_SUPPORT_LONG_PRESS_DURING_DISABLED

#include "EButton.h"

Expand Down

0 comments on commit bb80a98

Please sign in to comment.