[SIMPLE PROGRAM] HYT humidity & temp sensor polling / showing received data at TFT with capacitive touchscreen

Dependencies:   FT800_2 HYT mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers display.Calibration.cpp Source File

display.Calibration.cpp

00001 #include "display.h"
00002 
00003 /**************************************************************************************************************************
00004 ************************** Put calibration data to FT800 ******************************************************************
00005 **************************************************************************************************************************/
00006 void Display::Calibration()
00007 {   
00008     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};
00009     for (int i = 0; i < 24; i++) {
00010         (*_TFT).Wr8(REG_TOUCH_TRANSFORM_A + i, calibration[i]);
00011     }
00012 }