Skip to content

Commit 768b2ba

Browse files
zeweloruser2684
authored andcommitted
Allow to override interrupt pins (#487)
1 parent a266029 commit 768b2ba

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

nodemanager/Constants.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Constants: define all the constants used by NodeManager
3333
// define board sleep status
3434
enum status {
3535
AWAKE,
36-
SLEEP
36+
SLEEP
3737
};
3838

3939
//define Timer mode
@@ -110,9 +110,13 @@ Chip type
110110
#define INTERRUPT_PIN_1 PB8
111111
#define INTERRUPT_PIN_2 2
112112
#else
113+
#ifndef INTERRUPT_PIN_1
113114
#define INTERRUPT_PIN_1 3
115+
#endif
116+
#ifndef INTERRUPT_PIN_2
114117
#define INTERRUPT_PIN_2 2
115118
#endif
119+
#endif
116120

117121
// define eeprom addresses
118122
#define EEPROM_SLEEP_SAVED 0

0 commit comments

Comments
 (0)