aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJoel Bodenmann <joel@unormal.org>2012-11-25 23:33:10 +0100
committerJoel Bodenmann <joel@unormal.org>2012-11-25 23:33:10 +0100
commit9c74a081313a8681d2a47a15b9a0e228289a5c25 (patch)
tree5f7e5b04aef87e153c9c9668c7620634cd838060 /src
parentb724f40c3fc04a8887bfc5d8ea31e6f27823d319 (diff)
downloaduGFX-9c74a081313a8681d2a47a15b9a0e228289a5c25.tar.gz
uGFX-9c74a081313a8681d2a47a15b9a0e228289a5c25.tar.bz2
uGFX-9c74a081313a8681d2a47a15b9a0e228289a5c25.zip
implemented MCU touchscreen driver
Diffstat (limited to 'src')
-rw-r--r--src/touchscreen.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/touchscreen.c b/src/touchscreen.c
index 0fa5402e..265243a4 100644
--- a/src/touchscreen.c
+++ b/src/touchscreen.c
@@ -184,7 +184,7 @@ coord_t tsReadX(void) {
y = _tsReadRealY();
#endif
- _tsTransform(&x, &y);
+ //_tsTransform(&x, &y);
switch(gdispGetOrientation()) {
case GDISP_ROTATE_0:
@@ -218,7 +218,7 @@ coord_t tsReadY(void) {
y = _tsReadRealY();
#endif
- _tsTransform(&x, &y);
+ //_tsTransform(&x, &y);
switch(gdispGetOrientation()) {
case GDISP_ROTATE_0:
@@ -276,6 +276,9 @@ coord_t tsReadY(void) {
* @api
*/
void tsCalibrate(void) {
+#if 0
+
+
const uint16_t height = gdispGetHeight();
const uint16_t width = gdispGetWidth();
const coord_t cross[][2] = {{(width / 4), (height / 4)},
@@ -362,6 +365,7 @@ calibrate:
#if TOUCHSCREEN_STORE_CALIBRATION
ts_store_calibration_lld(cal);
#endif
+#endif
}
#endif /* GFX_USE_TOUCHSCREEN */