This commit is contained in:
Tectu 2012-08-09 09:39:22 +02:00
parent fdb5d8a580
commit fda647c6c2

View file

@ -74,6 +74,7 @@ static uint16_t _tpReadRealX(void) {
results += tp_lld_read_x(); results += tp_lld_read_x();
} }
// 12-bit
x = (((SCREEN_WIDTH-1) * (results/CONVERSIONS)) / 2048); x = (((SCREEN_WIDTH-1) * (results/CONVERSIONS)) / 2048);
return x; return x;
@ -93,6 +94,7 @@ static uint16_t _tpReadRealY(void) {
results += tp_lld_read_y(); results += tp_lld_read_y();
} }
// 12-bit
y = (((SCREEN_HEIGHT-1) * (results/CONVERSIONS)) / 2048); y = (((SCREEN_HEIGHT-1) * (results/CONVERSIONS)) / 2048);
return y; return y;