LCD LIB
Fork of RA8875 by
Diff: RA8875_Touch.cpp
- Revision:
- 145:5eb2492acdda
- Parent:
- 130:d633e80840e0
- Child:
- 149:c62c4b2d6a15
--- a/RA8875_Touch.cpp Thu Dec 29 20:06:00 2016 +0000 +++ b/RA8875_Touch.cpp Sat May 06 20:27:44 2017 +0000 @@ -35,7 +35,7 @@ WriteCommand(INTC2, RA8875_INT_TP); // reg INTC2: Clear any TP interrupt flag touchSample = 0; touchState = no_cal; - touchTicker.attach_us(this, &RA8875::_TouchTicker, TOUCH_TICKER_uS); + touchTicker.attach_us(callback(this, &RA8875::_TouchTicker), TOUCH_TICKER_uS); touchTimer.start(); touchTimer.reset(); } @@ -67,7 +67,7 @@ touchSample = 0; touchState = no_cal; if (bTpEnable == TP_ENABLE) { - touchTicker.attach_us(this, &RA8875::_TouchTicker, TOUCH_TICKER_uS); + touchTicker.attach_us(callback(this, &RA8875::_TouchTicker), TOUCH_TICKER_uS); touchTimer.start(); touchTimer.reset(); } else {