From 9c74a081313a8681d2a47a15b9a0e228289a5c25 Mon Sep 17 00:00:00 2001 From: Joel Bodenmann Date: Sun, 25 Nov 2012 23:33:10 +0100 Subject: implemented MCU touchscreen driver --- src/touchscreen.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/touchscreen.c') 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 */ -- cgit v1.2.3