30 lines
605 B
C
30 lines
605 B
C
#pragma once
|
|
|
|
#include "my_board.h"
|
|
#include "OneButton.h"
|
|
|
|
extern OneButton *boardButtons[3];
|
|
void Init_ButtonEvents(int8_t (&pin)[3]);
|
|
|
|
// Safely tick any initialized buttons (nullptr-aware)
|
|
void Update_Buttons();
|
|
|
|
void btn1_click();
|
|
void btn1_doubleClick();
|
|
void btn1_LongPressStart();
|
|
void btn1_LongPressStop();
|
|
void btn1_DuringLongPress();
|
|
|
|
void btn2_click();
|
|
void btn2_doubleClick();
|
|
void btn2_LongPressStart();
|
|
void btn2_LongPressStop();
|
|
void btn2_DuringLongPress();
|
|
|
|
void btn3_click();
|
|
void btn3_doubleClick();
|
|
void btn3_LongPressStart();
|
|
void btn3_LongPressStop();
|
|
void btn3_DuringLongPress();
|
|
|