Conversion of DisplayModule's DmTouch to work with UniGraphics as display driver rather than their own DmTftLib.
Fork of DmTouch_UniGraphic by
Revision 1:852bf4b0714f, committed 2016-01-21
- Comitter:
- JLarkin
- Date:
- Thu Jan 21 16:40:25 2016 +0000
- Parent:
- 0:fd018d3e7dab
- Commit message:
- Completed modifications on remaining panel types.
Changed in this revision
DmTouch.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r fd018d3e7dab -r 852bf4b0714f DmTouch.cpp --- a/DmTouch.cpp Wed Jan 20 07:25:22 2016 +0000 +++ b/DmTouch.cpp Thu Jan 21 16:40:25 2016 +0000 @@ -40,66 +40,41 @@ _height = 320; _touch_id = IC_2046; break; + + case DmTouch::DM_TFT50_111: // or DM_TFT50_112 + _width = 800; + _height = 480; + _hardwareSpi = true; + _touch_id = IC_8875; + break; - case DmTouch::DM_TFT28_105: - _cs = D4; - _irq = D2; - _clk = D13; - _mosi = D11; - _miso = D12; - _width = 240; - _height = 320; - _hardwareSpi = true; - _touch_id = IC_2046; - break; - - case DmTouch::DM_TFT35_107: - _cs = D4; - _irq = D2; - _clk = D13; - _mosi = D11; - _miso = D12; - _width = 320; - _height = 240; - _hardwareSpi = true; - _touch_id = IC_2046; - break; + case DmTouch::DM_TFT28_105: + _width = 240; + _height = 320; + _hardwareSpi = true; + _touch_id = IC_2046; + break; - case DmTouch::DM_TFT43_108: // or DM_TFT43_110 - _cs = D10; - _irq = D2; - _clk = D13; - _mosi = D11; - _miso = D12; - _width = 480; - _height = 272; - _hardwareSpi = true; - _touch_id = IC_8875; - break; + case DmTouch::DM_TFT35_107: + _width = 320; + _height = 240; + _hardwareSpi = true; + _touch_id = IC_2046; + break; + + case DmTouch::DM_TFT43_108: // or DM_TFT43_110 + _width = 480; + _height = 272; + _hardwareSpi = true; + _touch_id = IC_8875; + break; - case DmTouch::DM_TFT50_111: // or DM_TFT50_112 - _cs = D10; - _irq = D2; - _clk = D13; - _mosi = D11; - _miso = D12; - _width = 800; - _height = 480; - _hardwareSpi = true; - _touch_id = IC_8875; - break; - - default: - _cs = D4; - _irq = D2; - _clk = D13; - _mosi = D11; - _miso = D12; - _width = 320; - _height = 240; - _hardwareSpi = true; - _touch_id = IC_2046; - break; + default: + _width = 320; + _height = 240; + _hardwareSpi = true; + _touch_id = IC_2046; + break; } //setCalibrationMatrix(DmTouchCalibration::getDefaultCalibrationData(disp));