Русифицированная версия программы для измерения температуры и отн. влажности и вывода информации на сенсорный TFT

Dependencies:   FT800_2 HYT mbed

Embed: (wiki syntax)

« Back to documentation index

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

display.DisplayListFunctions.cpp

00001 #include "display.h"
00002 
00003 /**************************************************************************************************************************
00004 ************************** Start display list *****************************************************************************
00005 **************************************************************************************************************************/
00006 void Display::StartDL()
00007 {
00008     (*_TFT).DLstart();
00009     // set white color for background
00010     (*_TFT).DL(CLEAR_COLOR_RGB(255, 255, 255));
00011     // clear buffers for preset values
00012     (*_TFT).DL(CLEAR(1, 1, 1));
00013 }
00014 
00015 /**************************************************************************************************************************
00016 ************************** Finish display list ****************************************************************************
00017 **************************************************************************************************************************/
00018 void Display::FinishDL()
00019 {
00020     (*_TFT).DL(DISPLAY());
00021     // Swap the current display list
00022     (*_TFT).Swap();
00023     // Download the command list into fifo TFT
00024     (*_TFT).Flush_Co_Buffer();
00025     //  Wait for the complete consumption of FT800 Coprocessor commands
00026     (*_TFT).WaitCmdfifo_empty();
00027 }