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@1:8ca8a4ecbe6b, 2016-10-12 (annotated)
- Committer:
- Ksenia
- Date:
- Wed Oct 12 10:53:35 2016 +0000
- Revision:
- 1:8ca8a4ecbe6b
- Parent:
- 0:9db07391e780
?????? ??????? ? ?????? ?????????
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| Ksenia | 0:9db07391e780 | 1 | #include "display.h" |
| Ksenia | 0:9db07391e780 | 2 | |
| Ksenia | 0:9db07391e780 | 3 | /************************************************************************************************************************** |
| Ksenia | 0:9db07391e780 | 4 | ************************** Put calibration data to FT800 ****************************************************************** |
| Ksenia | 0:9db07391e780 | 5 | **************************************************************************************************************************/ |
| Ksenia | 0:9db07391e780 | 6 | void Display::Calibration() |
| Ksenia | 0:9db07391e780 | 7 | { |
| Ksenia | 0:9db07391e780 | 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:9db07391e780 | 9 | for (int i = 0; i < 24; i++) { |
| Ksenia | 0:9db07391e780 | 10 | (*_TFT).Wr8(REG_TOUCH_TRANSFORM_A + i, calibration[i]); |
| Ksenia | 0:9db07391e780 | 11 | } |
| Ksenia | 0:9db07391e780 | 12 | } |