touch screen handler for the microchip AR1020
Diff: ar1020.h
- Revision:
- 2:1a436d154c84
- Parent:
- 1:264ad2a00fd9
- Child:
- 4:510ea5b28a05
--- a/ar1020.h Tue Feb 22 21:43:39 2011 +0000 +++ b/ar1020.h Tue Feb 22 22:11:49 2011 +0000 @@ -49,10 +49,10 @@ virtual void read(); void calibrate(); private: - int cmd(char cmd,char* data, int len); + int cmd(char cmd,char* data, int len, bool doEnable=true); int readCalibResponse(); int readByte(); - void writeByte(char byte); + void writeByte(char bytee); SPI *_spi; DigitalOut *_enable;