From fda647c6c2111857cec188a7f6f104c459d87684 Mon Sep 17 00:00:00 2001 From: Tectu Date: Thu, 9 Aug 2012 09:39:22 +0200 Subject: doc --- halext/src/touchpad.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'halext/src') diff --git a/halext/src/touchpad.c b/halext/src/touchpad.c index 5274e350..3539ad32 100644 --- a/halext/src/touchpad.c +++ b/halext/src/touchpad.c @@ -74,6 +74,7 @@ static uint16_t _tpReadRealX(void) { results += tp_lld_read_x(); } + // 12-bit x = (((SCREEN_WIDTH-1) * (results/CONVERSIONS)) / 2048); return x; @@ -93,6 +94,7 @@ static uint16_t _tpReadRealY(void) { results += tp_lld_read_y(); } + // 12-bit y = (((SCREEN_HEIGHT-1) * (results/CONVERSIONS)) / 2048); return y; -- cgit v1.2.3