From 8bcc3970b876dc9f2d40d979c7070f611dbadae4 Mon Sep 17 00:00:00 2001 From: Tectu Date: Mon, 4 Jun 2012 16:40:38 +0200 Subject: made working calibration routine --- touchpad.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'touchpad.h') diff --git a/touchpad.h b/touchpad.h index 927c3a91..c9a686c6 100644 --- a/touchpad.h +++ b/touchpad.h @@ -9,10 +9,10 @@ #define SET_CS(a) (TP_PORT->BSRR = 1 << (TP_CS + (a ? 0 : 16))) volatile struct cal { - int16_t xm; - int16_t ym; - int16_t xn; - int16_t yn; + float xm; + float ym; + float xn; + float yn; }; void tpInit(void); -- cgit v1.2.3