(re-)add button interrupt

This commit is contained in:
cyberman54 2022-11-06 18:02:12 +01:00
parent 3bcb741709
commit f9757a02ac

View File

@ -46,6 +46,8 @@ void button_init(void) {
button.setPressTicks(1000);
button.attachClick(singleClick);
button.attachLongPressStart(longPressStart);
attachInterrupt(digitalPinToInterrupt(HAS_BUTTON), readButton, CHANGE);
};
#endif