mbed library for XPT2046 SPI Touchscreen Controller (TFT_320QVT module)
Dependents: TFT_320QVT_Window_Drag_Demo TFT_320QVT_HelloWorld UTFT_SSD1289 Ejemplo_TFT ... more
UTouchCD.h@0:a275ef704eb8, 2016-01-11 (annotated)
- Committer:
- rpocc
- Date:
- Mon Jan 11 09:35:33 2016 +0000
- Revision:
- 0:a275ef704eb8
The first version of this mbed port
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
rpocc | 0:a275ef704eb8 | 1 | // UTouchCD.h |
rpocc | 0:a275ef704eb8 | 2 | // ---------- |
rpocc | 0:a275ef704eb8 | 3 | // |
rpocc | 0:a275ef704eb8 | 4 | // Since there are slight deviations in all touch screens you should run a |
rpocc | 0:a275ef704eb8 | 5 | // calibration on your display module. Run the UTouch_Calibration sketch |
rpocc | 0:a275ef704eb8 | 6 | // that came with this library and follow the on-screen instructions to |
rpocc | 0:a275ef704eb8 | 7 | // update this file. |
rpocc | 0:a275ef704eb8 | 8 | // |
rpocc | 0:a275ef704eb8 | 9 | // Remember that is you have multiple display modules they will probably |
rpocc | 0:a275ef704eb8 | 10 | // require different calibration data so you should run the calibration |
rpocc | 0:a275ef704eb8 | 11 | // every time you switch to another module. |
rpocc | 0:a275ef704eb8 | 12 | // You can, of course, store calibration data for all your modules here |
rpocc | 0:a275ef704eb8 | 13 | // and comment out the ones you dont need at the moment. |
rpocc | 0:a275ef704eb8 | 14 | // |
rpocc | 0:a275ef704eb8 | 15 | |
rpocc | 0:a275ef704eb8 | 16 | // These calibration settings works with my ITDB02-3.2S. |
rpocc | 0:a275ef704eb8 | 17 | // They MIGHT work on your 320x240 display module, but you should run the |
rpocc | 0:a275ef704eb8 | 18 | // calibration sketch anyway. If you are using a display with any other |
rpocc | 0:a275ef704eb8 | 19 | // resolution you MUST calibrate it as these settings WILL NOT work. |
rpocc | 0:a275ef704eb8 | 20 | //#define CAL_X 0x00378F66UL |
rpocc | 0:a275ef704eb8 | 21 | //#define CAL_Y 0x03C34155UL |
rpocc | 0:a275ef704eb8 | 22 | //#define CAL_S 0x000EF13FUL |
rpocc | 0:a275ef704eb8 | 23 | |
rpocc | 0:a275ef704eb8 | 24 | //#define CAL_X 0x001DC771UL |
rpocc | 0:a275ef704eb8 | 25 | //#define CAL_Y 0x01E200A6UL |
rpocc | 0:a275ef704eb8 | 26 | //#define CAL_S 0x000EF13FUL |
rpocc | 0:a275ef704eb8 | 27 | |
rpocc | 0:a275ef704eb8 | 28 | #ifndef UTouchCD_h |
rpocc | 0:a275ef704eb8 | 29 | #define UTouchCD_h |
rpocc | 0:a275ef704eb8 | 30 | |
rpocc | 0:a275ef704eb8 | 31 | #ifdef __cplusplus |
rpocc | 0:a275ef704eb8 | 32 | extern "C" { |
rpocc | 0:a275ef704eb8 | 33 | #endif |
rpocc | 0:a275ef704eb8 | 34 | |
rpocc | 0:a275ef704eb8 | 35 | #define CAL_X 0x003B8EE2UL |
rpocc | 0:a275ef704eb8 | 36 | #define CAL_Y 0x03C4014CUL |
rpocc | 0:a275ef704eb8 | 37 | #define CAL_S 0x000EF13FUL |
rpocc | 0:a275ef704eb8 | 38 | |
rpocc | 0:a275ef704eb8 | 39 | #ifdef __cplusplus |
rpocc | 0:a275ef704eb8 | 40 | } |
rpocc | 0:a275ef704eb8 | 41 | #endif |
rpocc | 0:a275ef704eb8 | 42 | |
rpocc | 0:a275ef704eb8 | 43 | #endif |