test

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

Revision:
3:d4b106bf3a32
Child:
7:c364201bc3ed
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/TFT/display.Draw_ChromeTest.cpp	Sat Aug 08 18:32:53 2020 +0000
@@ -0,0 +1,714 @@
+#include "display.h"
+void Display::ChromTest(float temp,float ras,int temp_u,float ras_u)
+{
+    StartDL();
+        //"Parameters"
+        (*_TFT).DL(CLEAR_COLOR_RGB(255, 255, 255));
+        (*_TFT).DL(CLEAR(1, 1, 1));
+        (*_TFT).DL(COLOR_RGB(0, 0, 0));
+        (*_TFT).DL(SAVE_CONTEXT());
+        (*_TFT).DL(VERTEX_FORMAT(2));
+        (*_TFT).DL(BITMAP_HANDLE(31));
+        (*_TFT).DL(BEGIN(BITMAPS));
+        (*_TFT).DL(CELL(80));
+        (*_TFT).DL(VERTEX2F(1148, -4));
+        (*_TFT).DL(CELL(97));
+        (*_TFT).DL(VERTEX2F(1252, -4));
+        (*_TFT).DL(CELL(114));
+        (*_TFT).DL(VERTEX2F(1344, -4));
+        (*_TFT).DL(CELL(97));
+        (*_TFT).DL(VERTEX2F(1404, -4));
+        (*_TFT).DL(CELL(109));
+        (*_TFT).DL(VERTEX2F(1496, -4));
+        (*_TFT).DL(CELL(101));
+        (*_TFT).DL(VERTEX2F(1640, -4));
+        (*_TFT).DL(CELL(116));
+        (*_TFT).DL(VERTEX2F(1728, -4));
+        (*_TFT).DL(CELL(101));
+        (*_TFT).DL(VERTEX2F(1784, -4));
+        (*_TFT).DL(CELL(114));
+        (*_TFT).DL(VERTEX2F(1872, -4));
+        (*_TFT).DL(CELL(115));
+        (*_TFT).DL(VERTEX2F(1932, -4));
+        (*_TFT).DL(RESTORE_CONTEXT());
+        //кнопка "текущая температура"
+        (*_TFT).DL(TAG_MASK(1));//пометки что это изменено относительно генератора кода
+        (*_TFT).DL(TAG(CHROM_TEMP_PRESS));//
+        (*_TFT).DL(COLOR_RGB(255, 85, 0));
+        if (pressedButton == CHROM_TEMP_PRESS) {//
+        (*_TFT).DL(COLOR_RGB(75, 70, 108)); 
+        }//        
+        (*_TFT).DL(BEGIN(RECTS));
+        (*_TFT).DL(VERTEX2II(5, 245, 0, 0));
+        (*_TFT).DL(VERTEX2II(395, 295, 0, 0));
+        (*_TFT).DL(END());
+        //
+        (*_TFT).DL(COLOR_RGB(0, 0, 0));
+        (*_TFT).DL(SAVE_CONTEXT());
+        (*_TFT).DL(VERTEX_FORMAT(2));
+        (*_TFT).DL(BITMAP_HANDLE(18));
+        (*_TFT).DL(BEGIN(BITMAPS));
+        (*_TFT).DL(VERTEX2II(16, 263, 18, 'T'));
+        (*_TFT).DL(VERTEX2II(24, 263, 18, 'e'));
+        (*_TFT).DL(VERTEX2II(32, 263, 18, 'm'));
+        (*_TFT).DL(VERTEX2II(40, 263, 18, 'p'));
+        (*_TFT).DL(VERTEX2II(48, 263, 18, 'K'));
+        (*_TFT).DL(VERTEX2II(56, 263, 18, 'o'));
+        (*_TFT).DL(VERTEX2II(64, 263, 18, 'l'));
+        (*_TFT).DL(VERTEX2II(72, 263, 18, ' '));
+        (*_TFT).DL(VERTEX2II(80, 263, 18, 'C'));
+        (*_TFT).DL(VERTEX2II(88, 263, 18, 'u'));
+        (*_TFT).DL(VERTEX2II(96, 263, 18, 'r'));
+        (*_TFT).DL(VERTEX2II(104, 263, 18, 'r'));
+        (*_TFT).DL(VERTEX2II(112, 263, 18, 'e'));
+        (*_TFT).DL(VERTEX2II(120, 263, 18, 'n'));
+        (*_TFT).DL(VERTEX2II(128, 263, 18, 't'));
+        (*_TFT).DL(VERTEX2II(136, 263, 18, ':'));
+        (*_TFT).DL(RESTORE_CONTEXT());
+        (*_TFT).DL(TAG_MASK(0));//конец обработки нажатия кнопки
+        //
+        (*_TFT).DL(COLOR_RGB(0, 0, 0));
+        (*_TFT).DL(SAVE_CONTEXT());
+        (*_TFT).DL(VERTEX_FORMAT(2));
+        (*_TFT).DL(BITMAP_HANDLE(18));
+        (*_TFT).DL(BEGIN(BITMAPS));
+        char str[5]={0};
+        sprintf(str,"%2.2f",temp);        
+        (*_TFT).DL(VERTEX2II(149, 263, 18, str[0]));
+        (*_TFT).DL(VERTEX2II(157, 263, 18, str[1]));
+        (*_TFT).DL(VERTEX2II(162, 263, 18, str[2]));
+        (*_TFT).DL(VERTEX2II(170, 263, 18, str[3]));
+        (*_TFT).DL(VERTEX2II(178, 263, 18, str[4]));
+        (*_TFT).DL(RESTORE_CONTEXT());
+        //
+        (*_TFT).DL(COLOR_RGB(0, 0, 0));
+        (*_TFT).DL(SAVE_CONTEXT());
+        (*_TFT).DL(VERTEX_FORMAT(2));
+        (*_TFT).DL(BITMAP_HANDLE(18));
+        (*_TFT).DL(BEGIN(BITMAPS));
+        (*_TFT).DL(VERTEX2II(169+20, 260, 18, 'o'));//
+        (*_TFT).DL(VERTEX2II(177+20, 263, 18, 'C'));
+        (*_TFT).DL(VERTEX2II(185+20, 263, 18, ' '));
+        (*_TFT).DL(VERTEX2II(193+20, 263, 18, '/'));
+        (*_TFT).DL(VERTEX2II(201+20, 263, 18, ' '));
+        (*_TFT).DL(VERTEX2II(209+20, 263, 18, 'S'));
+        (*_TFT).DL(VERTEX2II(217+20, 263, 18, 'E'));
+        (*_TFT).DL(VERTEX2II(225+20, 263, 18, 'T'));
+        (*_TFT).DL(VERTEX2II(233+20, 263, 18, ':'));
+        (*_TFT).DL(RESTORE_CONTEXT());
+        //
+        (*_TFT).DL(SAVE_CONTEXT());
+        (*_TFT).DL(VERTEX_FORMAT(2));
+        (*_TFT).DL(BITMAP_HANDLE(18));
+        (*_TFT).DL(BEGIN(BITMAPS));        
+        sprintf(str,"%02d",temp_u);
+        (*_TFT).DL(VERTEX2II(244+20, 263, 18, str[0]));
+        (*_TFT).DL(VERTEX2II(252+20, 263, 18, str[1]));
+        (*_TFT).DL(RESTORE_CONTEXT());
+        //
+        (*_TFT).DL(SAVE_CONTEXT());
+        (*_TFT).DL(VERTEX_FORMAT(2));
+        (*_TFT).DL(BITMAP_HANDLE(18));
+        (*_TFT).DL(BEGIN(BITMAPS));
+        (*_TFT).DL(VERTEX2II(264+20, 260, 18, 'o'));//
+        (*_TFT).DL(VERTEX2II(272+20, 263, 18, 'C'));
+        (*_TFT).DL(RESTORE_CONTEXT());
+        //"Set Tempkol"
+        (*_TFT).DL(TAG_MASK(1));//пометки что это изменено относительно генератора кода
+        (*_TFT).DL(TAG(CHROM_SET_TEMP_PRESS));//           
+        (*_TFT).DL(COLOR_RGB(255, 255, 255));
+        (*_TFT).DL(SAVE_CONTEXT());
+        (*_TFT).DL(VERTEX_FORMAT(2));
+        (*_TFT).DL(BITMAP_HANDLE(15));
+        (*_TFT).DL(CELL(0));
+        (*_TFT).DL(BITMAP_SOURCE(-2097076));
+        (*_TFT).DL(BITMAP_LAYOUT_H(0, 0));
+        (*_TFT).DL(BITMAP_LAYOUT(L8, 1, 25));
+        (*_TFT).DL(BITMAP_SIZE_H(0, 0));
+        (*_TFT).DL(BITMAP_SIZE(NEAREST, REPEAT, BORDER, 390, 50));
+        (*_TFT).DL(COLOR_MASK(0, 0, 0, 1));
+        (*_TFT).DL(BLEND_FUNC(ZERO, ZERO));
+        (*_TFT).DL(BEGIN(BITMAPS));
+        (*_TFT).DL(VERTEX2F(1620, 980));
+        (*_TFT).DL(COLOR_MASK(1, 1, 1, 1));
+        (*_TFT).DL(BLEND_FUNC(SRC_ALPHA, ONE_MINUS_SRC_ALPHA));
+        (*_TFT).DL(LINE_WIDTH(48));                     
+        (*_TFT).DL(BEGIN(RECTS));
+        (*_TFT).DL(COLOR_RGB(255, 255, 255));        
+        (*_TFT).DL(VERTEX2F(1630, 990));
+        (*_TFT).DL(VERTEX2F(3166, 1166));
+        (*_TFT).DL(COLOR_RGB(0, 0, 0));
+        (*_TFT).DL(VERTEX2F(1636, 996));
+        (*_TFT).DL(VERTEX2F(3172, 1172));
+        (*_TFT).DL(COLOR_RGB(0, 56, 112));
+        (*_TFT).DL(VERTEX2F(1632, 992));
+        (*_TFT).DL(VERTEX2F(3168, 1168));
+        (*_TFT).DL(BEGIN(BITMAPS));
+        (*_TFT).DL(COLOR_MASK(0, 0, 0, 1));
+        (*_TFT).DL(BLEND_FUNC(DST_ALPHA, ZERO));
+        (*_TFT).DL(VERTEX2F(1620, 980));
+        (*_TFT).DL(COLOR_MASK(1, 1, 1, 0));
+        (*_TFT).DL(BLEND_FUNC(DST_ALPHA, ONE_MINUS_DST_ALPHA));
+        (*_TFT).DL(COLOR_RGB(255, 255, 255));
+        if (pressedButton == CHROM_SET_TEMP_PRESS) {//
+        (*_TFT).DL(COLOR_RGB(0, 0, 0)); //
+        }//
+        (*_TFT).DL(VERTEX2F(1620, 980));
+        (*_TFT).DL(COLOR_MASK(1, 1, 1, 1));
+        (*_TFT).DL(BLEND_FUNC(SRC_ALPHA, ONE_MINUS_SRC_ALPHA));
+        (*_TFT).DL(COLOR_RGB(0, 0, 0));
+        (*_TFT).DL(BITMAP_HANDLE(18));
+        (*_TFT).DL(CELL(83));
+        (*_TFT).DL(VERTEX2F(2224, 1044));
+        (*_TFT).DL(CELL(101));
+        (*_TFT).DL(VERTEX2F(2256, 1044));
+        (*_TFT).DL(CELL(116));
+        (*_TFT).DL(VERTEX2F(2288, 1044));
+        (*_TFT).DL(CELL(32));
+        (*_TFT).DL(VERTEX2F(2320, 1044));
+        (*_TFT).DL(CELL(84));
+        (*_TFT).DL(VERTEX2F(2352, 1044));
+        (*_TFT).DL(CELL(101));
+        (*_TFT).DL(VERTEX2F(2384, 1044));
+        (*_TFT).DL(CELL(109));
+        (*_TFT).DL(VERTEX2F(2416, 1044));
+        (*_TFT).DL(CELL(112));
+        (*_TFT).DL(VERTEX2F(2448, 1044));
+        (*_TFT).DL(CELL(75));
+        (*_TFT).DL(VERTEX2F(2480, 1044));
+        (*_TFT).DL(CELL(111));
+        (*_TFT).DL(VERTEX2F(2512, 1044));
+        (*_TFT).DL(CELL(108));
+        (*_TFT).DL(VERTEX2F(2544, 1044));
+        (*_TFT).DL(RESTORE_CONTEXT());
+        //тоже, изменение цвета
+        (*_TFT).DL(SAVE_CONTEXT());
+        (*_TFT).DL(VERTEX_FORMAT(2));
+        (*_TFT).DL(BITMAP_HANDLE(18));
+        (*_TFT).DL(CELL(83));
+        (*_TFT).DL(VERTEX2F(2228, 1048));
+        (*_TFT).DL(CELL(101));
+        (*_TFT).DL(VERTEX2F(2260, 1048));
+        (*_TFT).DL(CELL(116));
+        (*_TFT).DL(VERTEX2F(2292, 1048));
+        (*_TFT).DL(CELL(32));
+        (*_TFT).DL(VERTEX2F(2324, 1048));
+        (*_TFT).DL(CELL(84));
+        (*_TFT).DL(VERTEX2F(2356, 1048));
+        (*_TFT).DL(CELL(101));
+        (*_TFT).DL(VERTEX2F(2388, 1048));
+        (*_TFT).DL(CELL(109));
+        (*_TFT).DL(VERTEX2F(2420, 1048));
+        (*_TFT).DL(CELL(112));
+        (*_TFT).DL(VERTEX2F(2452, 1048));
+        (*_TFT).DL(CELL(75));
+        (*_TFT).DL(VERTEX2F(2484, 1048));
+        (*_TFT).DL(CELL(111));
+        (*_TFT).DL(VERTEX2F(2516, 1048));
+        (*_TFT).DL(CELL(108));
+        (*_TFT).DL(VERTEX2F(2548, 1048));
+        (*_TFT).DL(RESTORE_CONTEXT());
+        (*_TFT).DL(TAG_MASK(0));//конец обработки нажатия кнопки
+        //
+        (*_TFT).DL(COLOR_RGB(85, 255, 127));
+        (*_TFT).DL(BEGIN(RECTS));
+        (*_TFT).DL(VERTEX2II(5, 305, 0, 0));
+        (*_TFT).DL(VERTEX2II(395, 355, 0, 0));
+        (*_TFT).DL(END());
+        //
+        (*_TFT).DL(COLOR_RGB(0, 0, 0));
+        (*_TFT).DL(SAVE_CONTEXT());
+        (*_TFT).DL(VERTEX_FORMAT(2));
+        (*_TFT).DL(BITMAP_HANDLE(18));
+        (*_TFT).DL(BEGIN(BITMAPS));
+        (*_TFT).DL(VERTEX2II(21, 324, 18, 'R'));
+        (*_TFT).DL(VERTEX2II(29, 324, 18, 'a'));
+        (*_TFT).DL(VERTEX2II(37, 324, 18, 's'));
+        (*_TFT).DL(VERTEX2II(45, 324, 18, 'h'));
+        (*_TFT).DL(VERTEX2II(53, 324, 18, 'o'));
+        (*_TFT).DL(VERTEX2II(61, 324, 18, 'd'));
+        (*_TFT).DL(VERTEX2II(69, 324, 18, ' '));
+        (*_TFT).DL(VERTEX2II(77, 324, 18, 'C'));
+        (*_TFT).DL(VERTEX2II(85, 324, 18, 'u'));
+        (*_TFT).DL(VERTEX2II(93, 324, 18, 'r'));
+        (*_TFT).DL(VERTEX2II(101, 324, 18, 'r'));
+        (*_TFT).DL(VERTEX2II(109, 324, 18, 'e'));
+        (*_TFT).DL(VERTEX2II(117, 324, 18, 'n'));
+        (*_TFT).DL(VERTEX2II(125, 324, 18, 't'));
+        (*_TFT).DL(VERTEX2II(133, 324, 18, ':'));
+        (*_TFT).DL(RESTORE_CONTEXT());
+        //
+        (*_TFT).DL(COLOR_RGB(0, 0, 0));
+        (*_TFT).DL(SAVE_CONTEXT());
+        (*_TFT).DL(VERTEX_FORMAT(2));
+        (*_TFT).DL(BITMAP_HANDLE(18));
+        (*_TFT).DL(BEGIN(BITMAPS));
+        sprintf(str,"%2.2f",ras);//
+        (*_TFT).DL(VERTEX2II(145, 324, 18, str[0]));//
+        (*_TFT).DL(VERTEX2II(153, 324, 18, str[1]));//
+        (*_TFT).DL(VERTEX2II(158, 324, 18, str[2]));//
+        (*_TFT).DL(VERTEX2II(166, 324, 18, str[3]));//        
+        (*_TFT).DL(RESTORE_CONTEXT());
+        //
+        (*_TFT).DL(SAVE_CONTEXT());
+        (*_TFT).DL(VERTEX_FORMAT(2));
+        (*_TFT).DL(BITMAP_HANDLE(18));
+        (*_TFT).DL(BEGIN(BITMAPS));
+        (*_TFT).DL(VERTEX2II(166+10, 324, 18, 'c'));
+        (*_TFT).DL(VERTEX2II(174+10, 324, 18, 'm'));
+        (*_TFT).DL(VERTEX2II(182+10, 324, 18, '3'));
+        (*_TFT).DL(VERTEX2II(190+10, 324, 18, '/'));
+        (*_TFT).DL(VERTEX2II(198+10, 324, 18, 'm'));
+        (*_TFT).DL(VERTEX2II(206+10, 324, 18, 'i'));
+        (*_TFT).DL(VERTEX2II(214+10, 324, 18, 'n'));
+        (*_TFT).DL(VERTEX2II(222+10, 324, 18, ' '));
+        (*_TFT).DL(VERTEX2II(230+10, 324, 18, '/'));
+        (*_TFT).DL(VERTEX2II(238+10, 324, 18, ' '));
+        (*_TFT).DL(VERTEX2II(246+10, 324, 18, 'S'));
+        (*_TFT).DL(VERTEX2II(254+10, 324, 18, 'E'));
+        (*_TFT).DL(VERTEX2II(262+10, 324, 18, 'T'));
+        (*_TFT).DL(VERTEX2II(270+10, 324, 18, ':'));
+        (*_TFT).DL(RESTORE_CONTEXT());
+        //
+        (*_TFT).DL(SAVE_CONTEXT());
+        (*_TFT).DL(VERTEX_FORMAT(2));
+        (*_TFT).DL(BITMAP_HANDLE(18));
+        (*_TFT).DL(BEGIN(BITMAPS));
+        sprintf(str,"%2.2f",ras_u);
+        (*_TFT).DL(VERTEX2II(280+10, 324, 18, str[0]));
+        (*_TFT).DL(VERTEX2II(288+10, 324, 18, str[1]));
+        (*_TFT).DL(VERTEX2II(293+10, 324, 18, str[2]));
+        (*_TFT).DL(VERTEX2II(301+10, 324, 18, str[3]));        
+        (*_TFT).DL(RESTORE_CONTEXT());
+        //
+        (*_TFT).DL(SAVE_CONTEXT());
+        (*_TFT).DL(VERTEX_FORMAT(2));
+        (*_TFT).DL(BITMAP_HANDLE(18));
+        (*_TFT).DL(BEGIN(BITMAPS));
+        (*_TFT).DL(VERTEX2II(300+20, 324, 18, 'c'));
+        (*_TFT).DL(VERTEX2II(308+20, 324, 18, 'm'));
+        (*_TFT).DL(VERTEX2II(316+20, 324, 18, '3'));
+        (*_TFT).DL(VERTEX2II(324+20, 324, 18, '/'));
+        (*_TFT).DL(VERTEX2II(332+20, 324, 18, 'm'));
+        (*_TFT).DL(VERTEX2II(340+20, 324, 18, 'i'));
+        (*_TFT).DL(VERTEX2II(348+20, 324, 18, 'n'));
+        (*_TFT).DL(RESTORE_CONTEXT());
+        //установить расход
+        (*_TFT).DL(TAG_MASK(1));//пометки что это изменено относительно генератора кода
+        (*_TFT).DL(TAG(CHROM_SET_RASHOD_PRESS));//
+        (*_TFT).DL(COLOR_RGB(255, 255, 255));
+        (*_TFT).DL(SAVE_CONTEXT());
+        (*_TFT).DL(VERTEX_FORMAT(2));
+        (*_TFT).DL(BITMAP_HANDLE(15));
+        (*_TFT).DL(CELL(0));
+        (*_TFT).DL(BITMAP_SOURCE(-2097076));
+        (*_TFT).DL(BITMAP_LAYOUT_H(0, 0));
+        (*_TFT).DL(BITMAP_LAYOUT(L8, 1, 25));
+        (*_TFT).DL(BITMAP_SIZE_H(0, 0));
+        (*_TFT).DL(BITMAP_SIZE(NEAREST, REPEAT, BORDER, 390, 50));
+        (*_TFT).DL(COLOR_MASK(0, 0, 0, 1));
+        (*_TFT).DL(BLEND_FUNC(ZERO, ZERO));
+        (*_TFT).DL(BEGIN(BITMAPS));
+        (*_TFT).DL(VERTEX2F(1620, 1220));
+        (*_TFT).DL(COLOR_MASK(1, 1, 1, 1));
+        (*_TFT).DL(BLEND_FUNC(SRC_ALPHA, ONE_MINUS_SRC_ALPHA));
+        (*_TFT).DL(LINE_WIDTH(48));
+        (*_TFT).DL(BEGIN(RECTS));
+        (*_TFT).DL(COLOR_RGB(255, 255, 255));
+        (*_TFT).DL(VERTEX2F(1630, 1230));
+        (*_TFT).DL(VERTEX2F(3166, 1406));
+        (*_TFT).DL(COLOR_RGB(0, 0, 0));
+        (*_TFT).DL(VERTEX2F(1636, 1236));
+        (*_TFT).DL(VERTEX2F(3172, 1412));
+        (*_TFT).DL(COLOR_RGB(0, 56, 112));
+        (*_TFT).DL(VERTEX2F(1632, 1232));
+        (*_TFT).DL(VERTEX2F(3168, 1408));
+        (*_TFT).DL(BEGIN(BITMAPS));
+        (*_TFT).DL(COLOR_MASK(0, 0, 0, 1));
+        (*_TFT).DL(BLEND_FUNC(DST_ALPHA, ZERO));
+        (*_TFT).DL(VERTEX2F(1620, 1220));
+        (*_TFT).DL(COLOR_MASK(1, 1, 1, 0));
+        (*_TFT).DL(BLEND_FUNC(DST_ALPHA, ONE_MINUS_DST_ALPHA));
+        (*_TFT).DL(COLOR_RGB(255, 255, 255));
+        if (pressedButton == CHROM_SET_RASHOD_PRESS) {//
+        (*_TFT).DL(COLOR_RGB(0, 0, 0)); //
+        }//
+        (*_TFT).DL(VERTEX2F(1620, 1220));
+        (*_TFT).DL(COLOR_MASK(1, 1, 1, 1));
+        (*_TFT).DL(BLEND_FUNC(SRC_ALPHA, ONE_MINUS_SRC_ALPHA));
+        (*_TFT).DL(COLOR_RGB(0, 0, 0));
+        (*_TFT).DL(BITMAP_HANDLE(18));
+        (*_TFT).DL(CELL(83));
+        (*_TFT).DL(VERTEX2F(2240, 1284));
+        (*_TFT).DL(CELL(101));
+        (*_TFT).DL(VERTEX2F(2272, 1284));
+        (*_TFT).DL(CELL(116));
+        (*_TFT).DL(VERTEX2F(2304, 1284));
+        (*_TFT).DL(CELL(32));
+        (*_TFT).DL(VERTEX2F(2336, 1284));
+        (*_TFT).DL(CELL(82));
+        (*_TFT).DL(VERTEX2F(2368, 1284));
+        (*_TFT).DL(CELL(97));
+        (*_TFT).DL(VERTEX2F(2400, 1284));
+        (*_TFT).DL(CELL(115));
+        (*_TFT).DL(VERTEX2F(2432, 1284));
+        (*_TFT).DL(CELL(104));
+        (*_TFT).DL(VERTEX2F(2464, 1284));
+        (*_TFT).DL(CELL(111));
+        (*_TFT).DL(VERTEX2F(2496, 1284));
+        (*_TFT).DL(CELL(100));
+        (*_TFT).DL(VERTEX2F(2528, 1284));
+        (*_TFT).DL(RESTORE_CONTEXT());
+        //цвет букв "Set Rashod"
+        (*_TFT).DL(SAVE_CONTEXT());
+        (*_TFT).DL(VERTEX_FORMAT(2));
+        (*_TFT).DL(BITMAP_HANDLE(18));
+        (*_TFT).DL(CELL(83));
+        (*_TFT).DL(VERTEX2F(2244, 1288));
+        (*_TFT).DL(CELL(101));
+        (*_TFT).DL(VERTEX2F(2276, 1288));
+        (*_TFT).DL(CELL(116));
+        (*_TFT).DL(VERTEX2F(2308, 1288));
+        (*_TFT).DL(CELL(32));
+        (*_TFT).DL(VERTEX2F(2340, 1288));
+        (*_TFT).DL(CELL(82));
+        (*_TFT).DL(VERTEX2F(2372, 1288));
+        (*_TFT).DL(CELL(97));
+        (*_TFT).DL(VERTEX2F(2404, 1288));
+        (*_TFT).DL(CELL(115));
+        (*_TFT).DL(VERTEX2F(2436, 1288));
+        (*_TFT).DL(CELL(104));
+        (*_TFT).DL(VERTEX2F(2468, 1288));
+        (*_TFT).DL(CELL(111));
+        (*_TFT).DL(VERTEX2F(2500, 1288));
+        (*_TFT).DL(CELL(100));
+        (*_TFT).DL(VERTEX2F(2532, 1288));
+        (*_TFT).DL(RESTORE_CONTEXT());
+        (*_TFT).DL(TAG_MASK(0));//конец обработки нажатия кнопки
+        
+        //тут не кнопка а отображалка сигнал сенсора
+        (*_TFT).DL(COLOR_RGB(85, 255, 127));
+        (*_TFT).DL(BEGIN(RECTS));
+        (*_TFT).DL(VERTEX2II(5, 365, 0, 0));
+        (*_TFT).DL(VERTEX2II(395, 415, 0, 0));
+        (*_TFT).DL(END());
+        //
+        (*_TFT).DL(COLOR_RGB(0, 0, 0));
+        (*_TFT).DL(SAVE_CONTEXT());
+        (*_TFT).DL(VERTEX_FORMAT(2));
+        (*_TFT).DL(BITMAP_HANDLE(18));
+        (*_TFT).DL(BEGIN(BITMAPS));
+        (*_TFT).DL(VERTEX2II(20, 383, 18, 'S'));
+        (*_TFT).DL(VERTEX2II(28, 383, 18, 'e'));
+        (*_TFT).DL(VERTEX2II(36, 383, 18, 'n'));
+        (*_TFT).DL(VERTEX2II(44, 383, 18, 's'));
+        (*_TFT).DL(VERTEX2II(52, 383, 18, 'o'));
+        (*_TFT).DL(VERTEX2II(60, 383, 18, 'r'));
+        (*_TFT).DL(VERTEX2II(68, 383, 18, 'S'));
+        (*_TFT).DL(VERTEX2II(76, 383, 18, 'i'));
+        (*_TFT).DL(VERTEX2II(84, 383, 18, 'g'));
+        (*_TFT).DL(VERTEX2II(92, 383, 18, 'n'));
+        (*_TFT).DL(VERTEX2II(100, 383, 18, 'a'));
+        (*_TFT).DL(VERTEX2II(108, 383, 18, 'l'));
+        (*_TFT).DL(VERTEX2II(116, 383, 18, ':'));
+        (*_TFT).DL(RESTORE_CONTEXT());
+        //
+        (*_TFT).DL(SAVE_CONTEXT());
+        (*_TFT).DL(VERTEX_FORMAT(2));
+        (*_TFT).DL(BITMAP_HANDLE(18));
+        (*_TFT).DL(BEGIN(BITMAPS));
+        (*_TFT).DL(VERTEX2II(127, 383, 18, '0'));
+        (*_TFT).DL(VERTEX2II(135, 383, 18, '0'));
+        (*_TFT).DL(VERTEX2II(143, 383, 18, '0'));
+        (*_TFT).DL(VERTEX2II(151, 383, 18, '4'));
+        (*_TFT).DL(VERTEX2II(159, 383, 18, '2'));
+        (*_TFT).DL(RESTORE_CONTEXT());
+        //
+        (*_TFT).DL(SAVE_CONTEXT());
+        (*_TFT).DL(VERTEX_FORMAT(2));
+        (*_TFT).DL(BITMAP_HANDLE(18));
+        (*_TFT).DL(BEGIN(BITMAPS));
+        (*_TFT).DL(VERTEX2II(168, 383, 18, ' '));
+        (*_TFT).DL(VERTEX2II(176, 383, 18, '/'));
+        (*_TFT).DL(VERTEX2II(184, 383, 18, ' '));
+        (*_TFT).DL(VERTEX2II(192, 383, 18, 'S'));
+        (*_TFT).DL(VERTEX2II(200, 383, 18, 'e'));
+        (*_TFT).DL(VERTEX2II(208, 383, 18, 'n'));
+        (*_TFT).DL(VERTEX2II(216, 383, 18, 's'));
+        (*_TFT).DL(VERTEX2II(224, 383, 18, 'o'));
+        (*_TFT).DL(VERTEX2II(232, 383, 18, 'r'));
+        (*_TFT).DL(VERTEX2II(240, 383, 18, 'G'));
+        (*_TFT).DL(VERTEX2II(248, 383, 18, 'a'));
+        (*_TFT).DL(VERTEX2II(256, 383, 18, 'n'));
+        (*_TFT).DL(VERTEX2II(264, 383, 18, 'e'));
+        (*_TFT).DL(VERTEX2II(272, 383, 18, 'l'));
+        (*_TFT).DL(VERTEX2II(280, 383, 18, ':'));
+        (*_TFT).DL(RESTORE_CONTEXT());
+        //
+        (*_TFT).DL(SAVE_CONTEXT());
+        (*_TFT).DL(VERTEX_FORMAT(2));
+        (*_TFT).DL(BITMAP_HANDLE(18));
+        (*_TFT).DL(BEGIN(BITMAPS));
+        (*_TFT).DL(VERTEX2II(293, 383, 18, '0'));
+        (*_TFT).DL(VERTEX2II(301, 383, 18, '0'));
+        (*_TFT).DL(VERTEX2II(309, 383, 18, '1'));
+        (*_TFT).DL(RESTORE_CONTEXT());
+        //Set sensor gane
+        (*_TFT).DL(TAG_MASK(1));//пометки что это изменено относительно генератора кода
+        (*_TFT).DL(TAG(CHROM_SET_SENSGAIN_PRESS));//
+        (*_TFT).DL(COLOR_RGB(255, 255, 255));
+        (*_TFT).DL(SAVE_CONTEXT());
+        (*_TFT).DL(VERTEX_FORMAT(2));
+        (*_TFT).DL(BITMAP_HANDLE(15));
+        (*_TFT).DL(CELL(0));
+        (*_TFT).DL(BITMAP_SOURCE(-2097076));
+        (*_TFT).DL(BITMAP_LAYOUT_H(0, 0));
+        (*_TFT).DL(BITMAP_LAYOUT(L8, 1, 25));
+        (*_TFT).DL(BITMAP_SIZE_H(0, 0));
+        (*_TFT).DL(BITMAP_SIZE(NEAREST, REPEAT, BORDER, 390, 50));
+        (*_TFT).DL(COLOR_MASK(0, 0, 0, 1));
+        (*_TFT).DL(BLEND_FUNC(ZERO, ZERO));
+        (*_TFT).DL(BEGIN(BITMAPS));
+        (*_TFT).DL(VERTEX2F(1620, 1460));
+        (*_TFT).DL(COLOR_MASK(1, 1, 1, 1));
+        (*_TFT).DL(BLEND_FUNC(SRC_ALPHA, ONE_MINUS_SRC_ALPHA));
+        (*_TFT).DL(LINE_WIDTH(48));
+        (*_TFT).DL(BEGIN(RECTS));
+        (*_TFT).DL(COLOR_RGB(255, 255, 255));        
+        (*_TFT).DL(VERTEX2F(1630, 1470));
+        (*_TFT).DL(VERTEX2F(3166, 1646));
+        (*_TFT).DL(COLOR_RGB(0, 0, 0));
+        (*_TFT).DL(VERTEX2F(1636, 1476));
+        (*_TFT).DL(VERTEX2F(3172, 1652));
+        (*_TFT).DL(COLOR_RGB(0, 56, 112));
+        (*_TFT).DL(VERTEX2F(1632, 1472));
+        (*_TFT).DL(VERTEX2F(3168, 1648));
+        (*_TFT).DL(BEGIN(BITMAPS));
+        (*_TFT).DL(COLOR_MASK(0, 0, 0, 1));
+        (*_TFT).DL(BLEND_FUNC(DST_ALPHA, ZERO));
+        (*_TFT).DL(VERTEX2F(1620, 1460));
+        (*_TFT).DL(COLOR_MASK(1, 1, 1, 0));
+        (*_TFT).DL(BLEND_FUNC(DST_ALPHA, ONE_MINUS_DST_ALPHA));
+        (*_TFT).DL(COLOR_RGB(255, 255, 255));
+        if (pressedButton == CHROM_SET_SENSGAIN_PRESS) {//
+        (*_TFT).DL(COLOR_RGB(0, 0, 0)); //
+        }//
+        (*_TFT).DL(VERTEX2F(1620, 1460));
+        (*_TFT).DL(COLOR_MASK(1, 1, 1, 1));
+        (*_TFT).DL(BLEND_FUNC(SRC_ALPHA, ONE_MINUS_SRC_ALPHA));
+        (*_TFT).DL(COLOR_RGB(0, 0, 0));
+        (*_TFT).DL(BITMAP_HANDLE(18));
+        (*_TFT).DL(CELL(83));
+        (*_TFT).DL(VERTEX2F(2176, 1524));
+        (*_TFT).DL(CELL(101));
+        (*_TFT).DL(VERTEX2F(2208, 1524));
+        (*_TFT).DL(CELL(116));
+        (*_TFT).DL(VERTEX2F(2240, 1524));
+        (*_TFT).DL(CELL(32));
+        (*_TFT).DL(VERTEX2F(2272, 1524));
+        (*_TFT).DL(CELL(83));
+        (*_TFT).DL(VERTEX2F(2304, 1524));
+        (*_TFT).DL(CELL(101));
+        (*_TFT).DL(VERTEX2F(2336, 1524));
+        (*_TFT).DL(CELL(110));
+        (*_TFT).DL(VERTEX2F(2368, 1524));
+        (*_TFT).DL(CELL(115));
+        (*_TFT).DL(VERTEX2F(2400, 1524));
+        (*_TFT).DL(CELL(111));
+        (*_TFT).DL(VERTEX2F(2432, 1524));
+        (*_TFT).DL(CELL(114));
+        (*_TFT).DL(VERTEX2F(2464, 1524));
+        (*_TFT).DL(CELL(71));
+        (*_TFT).DL(VERTEX2F(2496, 1524));
+        (*_TFT).DL(CELL(97));
+        (*_TFT).DL(VERTEX2F(2528, 1524));
+        (*_TFT).DL(CELL(110));
+        (*_TFT).DL(VERTEX2F(2560, 1524));
+        (*_TFT).DL(CELL(101));
+        (*_TFT).DL(VERTEX2F(2592, 1524));
+        (*_TFT).DL(RESTORE_CONTEXT());
+        (*_TFT).DL(TAG_MASK(0));//конец обработки нажатия кнопки        
+        //
+        (*_TFT).DL(SAVE_CONTEXT());
+        (*_TFT).DL(VERTEX_FORMAT(2));
+        (*_TFT).DL(BITMAP_HANDLE(18));
+        (*_TFT).DL(CELL(83));
+        (*_TFT).DL(VERTEX2F(2180, 1528));
+        (*_TFT).DL(CELL(101));
+        (*_TFT).DL(VERTEX2F(2212, 1528));
+        (*_TFT).DL(CELL(116));
+        (*_TFT).DL(VERTEX2F(2244, 1528));
+        (*_TFT).DL(CELL(32));
+        (*_TFT).DL(VERTEX2F(2276, 1528));
+        (*_TFT).DL(CELL(83));
+        (*_TFT).DL(VERTEX2F(2308, 1528));
+        (*_TFT).DL(CELL(101));
+        (*_TFT).DL(VERTEX2F(2340, 1528));
+        (*_TFT).DL(CELL(110));
+        (*_TFT).DL(VERTEX2F(2372, 1528));
+        (*_TFT).DL(CELL(115));
+        (*_TFT).DL(VERTEX2F(2404, 1528));
+        (*_TFT).DL(CELL(111));
+        (*_TFT).DL(VERTEX2F(2436, 1528));
+        (*_TFT).DL(CELL(114));
+        (*_TFT).DL(VERTEX2F(2468, 1528));
+        (*_TFT).DL(CELL(71));
+        (*_TFT).DL(VERTEX2F(2500, 1528));
+        (*_TFT).DL(CELL(97));
+        (*_TFT).DL(VERTEX2F(2532, 1528));
+        (*_TFT).DL(CELL(110));
+        (*_TFT).DL(VERTEX2F(2564, 1528));
+        (*_TFT).DL(CELL(101));
+        (*_TFT).DL(VERTEX2F(2596, 1528));
+        (*_TFT).DL(RESTORE_CONTEXT());
+        //Пробоотбор
+        (*_TFT).DL(TAG_MASK(1));//пометки что это изменено относительно генератора кода
+        (*_TFT).DL(TAG(CHROM_PROBA_PRESS));//
+        (*_TFT).DL(COLOR_RGB(255, 170, 0));
+        (*_TFT).DL(SAVE_CONTEXT());
+        (*_TFT).DL(VERTEX_FORMAT(2));
+        (*_TFT).DL(BITMAP_HANDLE(15));
+        (*_TFT).DL(CELL(0));
+        (*_TFT).DL(BITMAP_SOURCE(-2097076));
+        (*_TFT).DL(BITMAP_LAYOUT_H(0, 0));
+        (*_TFT).DL(BITMAP_LAYOUT(L8, 1, 25));
+        (*_TFT).DL(BITMAP_SIZE_H(0, 0));
+        (*_TFT).DL(BITMAP_SIZE(NEAREST, REPEAT, BORDER, 390, 50));
+        (*_TFT).DL(COLOR_MASK(0, 0, 0, 1));
+        (*_TFT).DL(BLEND_FUNC(ZERO, ZERO));
+        (*_TFT).DL(BEGIN(BITMAPS));
+        (*_TFT).DL(VERTEX2F(20, 1700));
+        (*_TFT).DL(COLOR_MASK(1, 1, 1, 1));
+        (*_TFT).DL(BLEND_FUNC(SRC_ALPHA, ONE_MINUS_SRC_ALPHA));
+        (*_TFT).DL(LINE_WIDTH(60));
+        (*_TFT).DL(BEGIN(RECTS));
+        (*_TFT).DL(COLOR_RGB(255, 255, 255));        
+        (*_TFT).DL(VERTEX2F(33, 1713));
+        (*_TFT).DL(VERTEX2F(1563, 1883));
+        (*_TFT).DL(COLOR_RGB(0, 0, 0));
+        (*_TFT).DL(VERTEX2F(39, 1719));
+        (*_TFT).DL(VERTEX2F(1569, 1889));
+        (*_TFT).DL(COLOR_RGB(0, 56, 112));
+        (*_TFT).DL(VERTEX2F(35, 1715));
+        (*_TFT).DL(VERTEX2F(1565, 1885));
+        (*_TFT).DL(BEGIN(BITMAPS));
+        (*_TFT).DL(COLOR_MASK(0, 0, 0, 1));
+        (*_TFT).DL(BLEND_FUNC(DST_ALPHA, ZERO));
+        (*_TFT).DL(VERTEX2F(20, 1700));
+        (*_TFT).DL(COLOR_MASK(1, 1, 1, 0));
+        (*_TFT).DL(BLEND_FUNC(DST_ALPHA, ONE_MINUS_DST_ALPHA));
+        (*_TFT).DL(COLOR_RGB(255, 255, 255));
+        if (pressedButton == CHROM_PROBA_PRESS) {//
+        (*_TFT).DL(COLOR_RGB(0, 0, 0)); //
+        }//
+        (*_TFT).DL(VERTEX2F(20, 1700));
+        (*_TFT).DL(COLOR_MASK(1, 1, 1, 1));
+        (*_TFT).DL(BLEND_FUNC(SRC_ALPHA, ONE_MINUS_SRC_ALPHA));
+        (*_TFT).DL(COLOR_RGB(0, 0, 0));
+        (*_TFT).DL(BITMAP_HANDLE(27));
+        (*_TFT).DL(VERTEX2II(156, 439, 27, 'P'));
+        (*_TFT).DL(VERTEX2II(166, 439, 27, 'r'));
+        (*_TFT).DL(VERTEX2II(172, 439, 27, 'o'));
+        (*_TFT).DL(VERTEX2II(182, 439, 27, 'b'));
+        (*_TFT).DL(VERTEX2II(191, 439, 27, 'o'));
+        (*_TFT).DL(VERTEX2II(201, 439, 27, 'o'));
+        (*_TFT).DL(VERTEX2II(211, 439, 27, 't'));
+        (*_TFT).DL(VERTEX2II(218, 439, 27, 'b'));
+        (*_TFT).DL(VERTEX2II(227, 439, 27, 'o'));
+        (*_TFT).DL(VERTEX2II(237, 439, 27, 'r'));
+        (*_TFT).DL(RESTORE_CONTEXT());
+        //
+        (*_TFT).DL(SAVE_CONTEXT());
+        (*_TFT).DL(VERTEX_FORMAT(2));
+        (*_TFT).DL(BITMAP_HANDLE(27));
+        (*_TFT).DL(VERTEX2II(157, 440, 27, 'P'));
+        (*_TFT).DL(VERTEX2II(167, 440, 27, 'r'));
+        (*_TFT).DL(VERTEX2II(173, 440, 27, 'o'));
+        (*_TFT).DL(VERTEX2II(183, 440, 27, 'b'));
+        (*_TFT).DL(VERTEX2II(192, 440, 27, 'o'));
+        (*_TFT).DL(VERTEX2II(202, 440, 27, 'o'));
+        (*_TFT).DL(VERTEX2II(212, 440, 27, 't'));
+        (*_TFT).DL(VERTEX2II(219, 440, 27, 'b'));
+        (*_TFT).DL(VERTEX2II(228, 440, 27, 'o'));
+        (*_TFT).DL(VERTEX2II(238, 440, 27, 'r'));
+        (*_TFT).DL(RESTORE_CONTEXT());
+        (*_TFT).DL(TAG_MASK(0));//конец обработки нажатия кнопки
+        //Analiz
+        (*_TFT).DL(TAG_MASK(1));//пометки что это изменено относительно генератора кода
+        (*_TFT).DL(TAG(CHROM_ANALIZ_PRESS));//
+        (*_TFT).DL(COLOR_RGB(85, 255, 0));
+        (*_TFT).DL(SAVE_CONTEXT());
+        (*_TFT).DL(VERTEX_FORMAT(2));
+        (*_TFT).DL(BITMAP_HANDLE(15));
+        (*_TFT).DL(CELL(0));
+        (*_TFT).DL(BITMAP_SOURCE(-2097076));
+        (*_TFT).DL(BITMAP_LAYOUT_H(0, 0));
+        (*_TFT).DL(BITMAP_LAYOUT(L8, 1, 25));
+        (*_TFT).DL(BITMAP_SIZE_H(0, 0));
+        (*_TFT).DL(BITMAP_SIZE(NEAREST, REPEAT, BORDER, 390, 50));
+        (*_TFT).DL(COLOR_MASK(0, 0, 0, 1));
+        (*_TFT).DL(BLEND_FUNC(ZERO, ZERO));
+        (*_TFT).DL(BEGIN(BITMAPS));
+        (*_TFT).DL(VERTEX2F(1620, 1700));
+        (*_TFT).DL(COLOR_MASK(1, 1, 1, 1));
+        (*_TFT).DL(BLEND_FUNC(SRC_ALPHA, ONE_MINUS_SRC_ALPHA));
+        (*_TFT).DL(LINE_WIDTH(60));
+        (*_TFT).DL(BEGIN(RECTS));
+        (*_TFT).DL(COLOR_RGB(255, 255, 255));
+        (*_TFT).DL(VERTEX2F(1633, 1713));
+        (*_TFT).DL(VERTEX2F(3163, 1883));
+        (*_TFT).DL(COLOR_RGB(0, 0, 0));
+        (*_TFT).DL(VERTEX2F(1639, 1719));
+        (*_TFT).DL(VERTEX2F(3169, 1889));
+        (*_TFT).DL(COLOR_RGB(0, 56, 112));
+        (*_TFT).DL(VERTEX2F(1635, 1715));
+        (*_TFT).DL(VERTEX2F(3165, 1885));
+        (*_TFT).DL(BEGIN(BITMAPS));
+        (*_TFT).DL(COLOR_MASK(0, 0, 0, 1));
+        (*_TFT).DL(BLEND_FUNC(DST_ALPHA, ZERO));
+        (*_TFT).DL(VERTEX2F(1620, 1700));
+        (*_TFT).DL(COLOR_MASK(1, 1, 1, 0));
+        (*_TFT).DL(BLEND_FUNC(DST_ALPHA, ONE_MINUS_DST_ALPHA));
+        (*_TFT).DL(COLOR_RGB(255, 255, 255));
+        if (pressedButton == CHROM_ANALIZ_PRESS) {//
+        (*_TFT).DL(COLOR_RGB(0, 0, 0)); //
+        }//
+        (*_TFT).DL(VERTEX2F(1620, 1700));
+        (*_TFT).DL(COLOR_MASK(1, 1, 1, 1));
+        (*_TFT).DL(BLEND_FUNC(SRC_ALPHA, ONE_MINUS_SRC_ALPHA));
+        (*_TFT).DL(COLOR_RGB(0, 0, 0));
+        (*_TFT).DL(BITMAP_HANDLE(27));
+        (*_TFT).DL(CELL(65));
+        (*_TFT).DL(VERTEX2F(2308, 1756));
+        (*_TFT).DL(CELL(110));
+        (*_TFT).DL(VERTEX2F(2352, 1756));
+        (*_TFT).DL(CELL(97));
+        (*_TFT).DL(VERTEX2F(2388, 1756));
+        (*_TFT).DL(CELL(108));
+        (*_TFT).DL(VERTEX2F(2424, 1756));
+        (*_TFT).DL(CELL(105));
+        (*_TFT).DL(VERTEX2F(2440, 1756));
+        (*_TFT).DL(CELL(122));
+        (*_TFT).DL(VERTEX2F(2456, 1756));
+        (*_TFT).DL(RESTORE_CONTEXT());
+        //Цвет букв "Analiz"
+        (*_TFT).DL(SAVE_CONTEXT());
+        (*_TFT).DL(VERTEX_FORMAT(2));
+        (*_TFT).DL(BITMAP_HANDLE(27));
+        (*_TFT).DL(CELL(65));
+        (*_TFT).DL(VERTEX2F(2312, 1760));
+        (*_TFT).DL(CELL(110));
+        (*_TFT).DL(VERTEX2F(2356, 1760));
+        (*_TFT).DL(CELL(97));
+        (*_TFT).DL(VERTEX2F(2392, 1760));
+        (*_TFT).DL(CELL(108));
+        (*_TFT).DL(VERTEX2F(2428, 1760));
+        (*_TFT).DL(CELL(105));
+        (*_TFT).DL(VERTEX2F(2444, 1760));
+        (*_TFT).DL(CELL(122));
+        (*_TFT).DL(VERTEX2F(2460, 1760));
+        (*_TFT).DL(RESTORE_CONTEXT());
+        (*_TFT).DL(TAG_MASK(0));//конец обработки нажатия кнопки
+        (*_TFT).DL(DISPLAY());
+    FinishDL();
+}
\ No newline at end of file