Caiou
Dependents: LCD_Proj LCD_imagetest LCD_Proj_rtc
Fork of DmTftLibrary by
Diff: DmTouch.h
- Revision:
- 11:264e19992620
- Parent:
- 10:d263094e666d
- Child:
- 14:2db7065edbec
--- a/DmTouch.h Wed Jul 09 08:31:34 2014 +0000 +++ b/DmTouch.h Wed Jan 21 13:56:51 2015 +0000 @@ -26,7 +26,9 @@ DM_TFT28_103 = 103, DM_TFT24_104 = 104, DM_TFT28_105 = 105, - DM_TFT35_107 = 107 + DM_TFT35_107 = 107, + DM_TFT43_108 = 108, + DM_TFT50_111 = 111 }; enum SpiMode { @@ -34,6 +36,11 @@ Software, Hardware }; + + enum TouchId{ + IC_8875 = 0x8875, + IC_2046 = 0x2046 + }; #if defined (DM_TOOLCHAIN_ARDUINO) DmTouch(Display disp, SpiMode spiMode=Auto, bool useIrq=true); @@ -70,6 +77,7 @@ CalibrationMatrix _calibrationMatrix; uint8_t _cs, _clk, _mosi, _miso; int8_t _irq; + uint16_t _touch_id; #if defined (DM_TOOLCHAIN_ARDUINO) regtype *_pinDC, *_pinCS, *_pinCLK, *_pinMOSI, *_pinMISO, *_pinIrq; @@ -77,7 +85,7 @@ uint8_t _spiSettings; #elif defined (DM_TOOLCHAIN_MBED) DigitalOut *_pinDC, *_pinCS, *_pinCLK, *_pinMOSI, *_led; - DigitalIn *_pinMISO; + DigitalIn *_pinMISO, *_pinIrq; SPI *_spi; #endif