mirror of
https://codeberg.org/mclemens/ubitxv6.git
synced 2024-10-04 15:14:14 -04:00
Clean up types a bit
This commit is contained in:
parent
b909f4d652
commit
3438bef4fb
11
touch.cpp
11
touch.cpp
@ -4,13 +4,12 @@
|
|||||||
|
|
||||||
#include "ubitx.h"//pin assignments
|
#include "ubitx.h"//pin assignments
|
||||||
|
|
||||||
#define Z_THRESHOLD 400
|
constexpr int16_t Z_THRESHOLD = 400;
|
||||||
#define Z_THRESHOLD_INT 75
|
constexpr uint8_t MSEC_THRESHOLD = 3;
|
||||||
#define MSEC_THRESHOLD 3
|
|
||||||
|
|
||||||
static uint32_t msraw=0x80000000;
|
uint32_t msraw=0x80000000;
|
||||||
static int16_t xraw=0, yraw=0, zraw=0;
|
int16_t xraw=0, yraw=0, zraw=0;
|
||||||
static uint8_t rotation = 1;
|
constexpr uint8_t rotation = 1;
|
||||||
|
|
||||||
int16_t touch_besttwoavg( int16_t x , int16_t y , int16_t z ) {
|
int16_t touch_besttwoavg( int16_t x , int16_t y , int16_t z ) {
|
||||||
int16_t da, db, dc;
|
int16_t da, db, dc;
|
||||||
|
Loading…
Reference in New Issue
Block a user