From 72fc92b58481709ba2b64ff72e365e58e6b78163 Mon Sep 17 00:00:00 2001 From: Reed Nightingale Date: Sun, 9 Feb 2020 18:40:42 -0800 Subject: [PATCH] Add classes for button timing variables and point --- button_timing.h | 5 +++++ point.h | 8 ++++++++ 2 files changed, 13 insertions(+) create mode 100644 button_timing.h create mode 100644 point.h diff --git a/button_timing.h b/button_timing.h new file mode 100644 index 0000000..fdac0ea --- /dev/null +++ b/button_timing.h @@ -0,0 +1,5 @@ +#pragma once + +static const uint8_t DEBOUNCE_DELAY_MS = 50; +static const uint16_t LONG_PRESS_TIME_MS = 3000; +static const uint8_t LONG_PRESS_POLL_TIME_MS = 10; \ No newline at end of file diff --git a/point.h b/point.h new file mode 100644 index 0000000..f716a8d --- /dev/null +++ b/point.h @@ -0,0 +1,8 @@ +#pragma once + +#include + +struct Point { + int16_t x; + int16_t y; +};