comparison Discovery/Inc/global_constants.h @ 95:2a74647d28d1 kittz

Debounce. Bounced buttons fixed.
author Dmitry Romanov <kitt@bk.ru>
date Mon, 26 Nov 2018 13:42:38 +0300
parents 3d6ccfb0190b
children 6eec2db15cf8
comparison
equal deleted inserted replaced
94:c6d284ea265b 95:2a74647d28d1
25 ////////////////////////////////////////////////////////////////////////////// 25 //////////////////////////////////////////////////////////////////////////////
26 26
27 #ifndef GLOBAL_CONSTANTS_H 27 #ifndef GLOBAL_CONSTANTS_H
28 #define GLOBAL_CONSTANTS_H 28 #define GLOBAL_CONSTANTS_H
29 //Rename it ahead. 29 //Rename it ahead.
30 //Buttons section
30 #define DEFAULT_BUTTONRESPONSIVENESS_GUI 90 31 #define DEFAULT_BUTTONRESPONSIVENESS_GUI 90
31 #define MIN_BUTTONRESPONSIVENESS_GUI 50 //50 (-10correction) 32 #define MIN_BUTTONRESPONSIVENESS_GUI 50 //50 (-10correction)
32 #define MAX_BUTTONRESPONSIVENESS_GUI 110//100 (+10correction) 33 #define MAX_BUTTONRESPONSIVENESS_GUI 110//100 (+10correction)
33 #define MIN_BUTTONRESPONSIVENESS MIN_BUTTONRESPONSIVENESS_GUI-20 //MIN_BUTTONRESPONSIVENESS_GUI-10 correction 34 #define MIN_BUTTONRESPONSIVENESS MIN_BUTTONRESPONSIVENESS_GUI-20 //MIN_BUTTONRESPONSIVENESS_GUI-10 correction
34 #define MAX_BUTTONRESPONSIVENESS MAX_BUTTONRESPONSIVENESS_GUI+20//MIN_BUTTONRESPONSIVENESS_GUI+10correction 35 #define MAX_BUTTONRESPONSIVENESS MAX_BUTTONRESPONSIVENESS_GUI+20//MIN_BUTTONRESPONSIVENESS_GUI+10correction
36 #define BUTTON_DEBOUNCE_DELAY 2 //Delay for debounce filter for piezo buttons
35 37
36 #endif 38 #endif