Library to control a Graphics TFT connected to 4-wire SPI - revised for the Raio RA8875 Display Controller.
Dependents: FRDM_RA8875_mPaint RA8875_Demo RA8875_KeyPadDemo SignalGenerator ... more
Fork of SPI_TFT by
See Components - RA8875 Based Display
Enhanced touch-screen support - where it previous supported both the Resistive Touch and Capacitive Touch based on the FT5206 Touch Controller, now it also has support for the GSL1680 Touch Controller.
Offline Help Manual (Windows chm)
/media/uploads/WiredHome/ra8875.zip.bin (download, rename to .zip and unzip)
Diff: RA8875_Touch_GSL1680.cpp
- Revision:
- 170:7e26d51bc48b
- Parent:
- 168:37a0c4d8791c
- Child:
- 171:f92c0f1f6db4
--- a/RA8875_Touch_GSL1680.cpp Fri Mar 01 19:34:32 2019 +0000 +++ b/RA8875_Touch_GSL1680.cpp Sat Mar 02 00:47:14 2019 +0000 @@ -14,7 +14,7 @@ /// found and interpreted and interface converted to align with this library. /// /// @caution It is probably clear that this represents a work in process, and is -/// in an attempt to make a working driver. +/// an attempt to make a working driver. /// /// http://linux-sunxi.org/GSL1680 has some useful information, a bit of which /// is replicated here in case that site changes/disappears. @@ -230,7 +230,7 @@ // [8B] --+ // ... #define TD_SPACE (4 + 4 * GSL1680_TOUCH_POINTS) - if (m_irq->read() == 1) { + if (m_irq->read() == 0) { uint8_t touch_data[TD_SPACE]; GSL1680_ReadRegU8(0x80, touch_data, TD_SPACE); @@ -253,6 +253,7 @@ } } else { numberOfTouchPoints = 0; + ERR("GSL1680 Touch - else path, unexpected."); } return numberOfTouchPoints; }