Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: FT800_2 HYT mbed
TFT/display.Calibration.cpp@0:1f5444f2977d, 2016-09-26 (annotated)
- Committer:
- Ksenia
- Date:
- Mon Sep 26 15:39:09 2016 +0000
- Revision:
- 0:1f5444f2977d
Initial commit;
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| Ksenia | 0:1f5444f2977d | 1 | #include "display.h" |
| Ksenia | 0:1f5444f2977d | 2 | |
| Ksenia | 0:1f5444f2977d | 3 | /************************************************************************************************************************** |
| Ksenia | 0:1f5444f2977d | 4 | ************************** Put calibration data to FT800 ****************************************************************** |
| Ksenia | 0:1f5444f2977d | 5 | **************************************************************************************************************************/ |
| Ksenia | 0:1f5444f2977d | 6 | void Display::Calibration() |
| Ksenia | 0:1f5444f2977d | 7 | { |
| Ksenia | 0:1f5444f2977d | 8 | char calibration[25] = {98, 99, 0, 0, 182, 254, 255, 255, 245, 142, 248, 255, 117, 254, 255, 255, 34, 98, 0, 0, 123, 154, 248, 255}; |
| Ksenia | 0:1f5444f2977d | 9 | for (int i = 0; i < 24; i++) { |
| Ksenia | 0:1f5444f2977d | 10 | (*_TFT).Wr8(REG_TOUCH_TRANSFORM_A + i, calibration[i]); |
| Ksenia | 0:1f5444f2977d | 11 | } |
| Ksenia | 0:1f5444f2977d | 12 | } |