Mercurial > public > ostc4
diff 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 |
line wrap: on
line diff
--- a/Discovery/Inc/global_constants.h Mon Nov 26 12:20:31 2018 +0300 +++ b/Discovery/Inc/global_constants.h Mon Nov 26 13:42:38 2018 +0300 @@ -27,10 +27,12 @@ #ifndef GLOBAL_CONSTANTS_H #define GLOBAL_CONSTANTS_H //Rename it ahead. +//Buttons section #define DEFAULT_BUTTONRESPONSIVENESS_GUI 90 #define MIN_BUTTONRESPONSIVENESS_GUI 50 //50 (-10correction) #define MAX_BUTTONRESPONSIVENESS_GUI 110//100 (+10correction) #define MIN_BUTTONRESPONSIVENESS MIN_BUTTONRESPONSIVENESS_GUI-20 //MIN_BUTTONRESPONSIVENESS_GUI-10 correction #define MAX_BUTTONRESPONSIVENESS MAX_BUTTONRESPONSIVENESS_GUI+20//MIN_BUTTONRESPONSIVENESS_GUI+10correction +#define BUTTON_DEBOUNCE_DELAY 2 //Delay for debounce filter for piezo buttons #endif