-
Notifications
You must be signed in to change notification settings - Fork 43
/
Copy pathButtons.h
40 lines (32 loc) · 1.13 KB
/
Buttons.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/*
* Buttons.h
*
* Created on: 21 Octber 2016
* author: Sebastien CAPOU ([email protected]) and Andras Kun ([email protected])
* Source : https://github.com/Protonerd/FX-SaberOS
*/
#include <Arduino.h>
#if not defined BUTTONS_H_
#define BUTTONS_H_
// ====================================================================================
// === BUTTONS CALLBACK FUNCTIONS ===
// ====================================================================================
// button action enum
enum ButtonActionEnum{SINGLE_CLICK, DOUBLE_CLICK, MULTI_CLICK, LONGPRESS, LONGPRESS_START, LONGPRESS_STOP};
//ButtonActionEnum ButtonActionTye;
void mainClick();
void mainDoubleClick();
void mainMultiClick();
void mainLongPressStart();
void mainLongPress();
void mainLongPressStop();
#ifndef SINGLEBUTTON
void lockupClick();
void lockupDoubleClick();
void lockupLongPressStart();
void lockupLongPress();
void lockupLongPressStop();
#endif
void ConfigMenuButtonEventHandler(bool SaturateColor,ButtonActionEnum ButtonActionType, int8_t incrementSign=1);
void QuickSelectButtonEventHandler();
#endif /* BUTTONS_H_ */