Add classes for button timing variables and point

This commit is contained in:
Reed Nightingale 2020-02-09 18:40:42 -08:00
parent b29bd955ca
commit 72fc92b584
2 changed files with 13 additions and 0 deletions

5
button_timing.h Normal file
View File

@ -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;

8
point.h Normal file
View File

@ -0,0 +1,8 @@
#pragma once
#include <stdint.h>
struct Point {
int16_t x;
int16_t y;
};