(re-)add button interrupt
This commit is contained in:
parent
3bcb741709
commit
f9757a02ac
@ -46,6 +46,8 @@ void button_init(void) {
|
||||
button.setPressTicks(1000);
|
||||
button.attachClick(singleClick);
|
||||
button.attachLongPressStart(longPressStart);
|
||||
|
||||
attachInterrupt(digitalPinToInterrupt(HAS_BUTTON), readButton, CHANGE);
|
||||
};
|
||||
|
||||
#endif
|
Loading…
Reference in New Issue
Block a user