test

Dependencies:   ad5422_arduino mbed LT1446 ADS1248-1 LM35-1 Flash FT813 PGA280_ADS1259

Committer:
nikmaos
Date:
Tue Sep 01 10:52:34 2020 +0000
Revision:
7:c364201bc3ed
Parent:
3:d4b106bf3a32
1.09.2020;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
nikmaos 3:d4b106bf3a32 1 #include "display.h"
nikmaos 3:d4b106bf3a32 2
nikmaos 3:d4b106bf3a32 3 /**************************************************************************************************************************
nikmaos 3:d4b106bf3a32 4 ************************** Put calibration data to FT800 ******************************************************************
nikmaos 3:d4b106bf3a32 5 **************************************************************************************************************************/
nikmaos 3:d4b106bf3a32 6 void Display::Calibration(char * calibration,char re)
nikmaos 3:d4b106bf3a32 7 {
nikmaos 3:d4b106bf3a32 8 if(calibration[0]==0xFF||(re>0)){
nikmaos 3:d4b106bf3a32 9 (*_TFT).Calibrate();//Калибровка дисплея
nikmaos 7:c364201bc3ed 10 for (int i = 0; i <24; i++)
nikmaos 3:d4b106bf3a32 11 //запись в буфер памяти
nikmaos 3:d4b106bf3a32 12 {
nikmaos 3:d4b106bf3a32 13 calibration[i]=(*_TFT).Rd8(REG_TOUCH_TRANSFORM_A + i);
nikmaos 3:d4b106bf3a32 14 };
nikmaos 3:d4b106bf3a32 15 }
nikmaos 3:d4b106bf3a32 16 else{
nikmaos 3:d4b106bf3a32 17 //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};
nikmaos 7:c364201bc3ed 18 for (int i = 0; i <24; i++) {
nikmaos 3:d4b106bf3a32 19 (*_TFT).Wr8(REG_TOUCH_TRANSFORM_A + i, calibration[i]);}
nikmaos 3:d4b106bf3a32 20 }
nikmaos 3:d4b106bf3a32 21 }