diff options
author | Tectu <joel@unormal.org> | 2012-08-09 09:39:22 +0200 |
---|---|---|
committer | Tectu <joel@unormal.org> | 2012-08-09 09:39:22 +0200 |
commit | fda647c6c2111857cec188a7f6f104c459d87684 (patch) | |
tree | 7e2ec7d523373b37d617dc3560b978ac6be2f9aa /halext | |
parent | fdb5d8a5808dbe9081bc39088a71351c71629d62 (diff) | |
download | uGFX-fda647c6c2111857cec188a7f6f104c459d87684.tar.gz uGFX-fda647c6c2111857cec188a7f6f104c459d87684.tar.bz2 uGFX-fda647c6c2111857cec188a7f6f104c459d87684.zip |
doc
Diffstat (limited to 'halext')
-rw-r--r-- | halext/src/touchpad.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; |