Ksenia Kondrashova / Mbed 2 deprecated Temp_&_RH_at_TFT_with_touchscreen

Dependencies:   FT800_2 HYT mbed

Committer:
Ksenia
Date:
Mon Sep 26 15:39:09 2016 +0000
Revision:
0:1f5444f2977d
Initial commit;

Who changed what in which revision?

UserRevisionLine numberNew 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 }