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: ad5422_arduino mbed LT1446 ADS1248-1 LM35-1 Flash FT813 PGA280_ADS1259
display.Calibration.cpp
00001 #include "display.h" 00002 00003 /************************************************************************************************************************** 00004 ************************** Put calibration data to FT800 ****************************************************************** 00005 **************************************************************************************************************************/ 00006 void Display::Calibration(char * calibration,char re) 00007 { 00008 if(calibration[0]==0xFF||(re>0)){ 00009 (*_TFT).Calibrate();//Калибровка дисплея 00010 for (int i = 0; i <24; i++) 00011 //запись в буфер памяти 00012 { 00013 calibration[i]=(*_TFT).Rd8(REG_TOUCH_TRANSFORM_A + i); 00014 }; 00015 } 00016 else{ 00017 //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}; 00018 for (int i = 0; i <24; i++) { 00019 (*_TFT).Wr8(REG_TOUCH_TRANSFORM_A + i, calibration[i]);} 00020 } 00021 }
Generated on Thu Jul 14 2022 17:32:52 by
1.7.2