Modified to work with two displays
Dependents: touch2 default CANary_9341_test CANary_merge
Fork of Touch_tft by
Diff: TOUCH_TFTx2.cpp
- Revision:
- 8:fd0abf6a7f59
- Parent:
- 7:9cc43f20e365
- Child:
- 9:b322eddc57c7
- Child:
- 10:fd7ae99850a9
--- a/TOUCH_TFTx2.cpp Tue Feb 19 18:18:56 2013 +0000 +++ b/TOUCH_TFTx2.cpp Fri Feb 22 23:23:34 2013 +0000 @@ -81,7 +81,7 @@ dx = (x1 > x2)? (x1-x2) : (x2-x1); x2 = x1; if(dy<accuracy && dx<accuracy) { - if(k<8){ + if(k<numsamp/2){ xs1 += x1; ys1 += y1; i++;