Measuring air flow, relative humidity & temperature, then showing results at TFT
Dependencies: FT800_2 HYT mbed
DisplayListFunctions.cpp
00001 #include "Display.h" 00002 00003 00004 /************************************************************************************************************************** 00005 ************************** Start display list ***************************************************************************** 00006 **************************************************************************************************************************/ 00007 void Display::StartDL() 00008 { 00009 (*_TFT).DLstart(); 00010 // set color for background 00011 (*_TFT).DL(CLEAR_BACKGROUND_COLOR); 00012 // clear buffers for preset values 00013 (*_TFT).DL(CLEAR(1, 1, 1)); 00014 } 00015 00016 /************************************************************************************************************************** 00017 ************************** Finish display list **************************************************************************** 00018 **************************************************************************************************************************/ 00019 void Display::FinishDL() 00020 { 00021 (*_TFT).DL(DISPLAY()); 00022 // Swap the current display list 00023 (*_TFT).Swap(); 00024 // Download the command list into fifo TFT 00025 (*_TFT).Flush_Co_Buffer(); 00026 // Wait for the complete consumption of FT800 Coprocessor commands 00027 (*_TFT).WaitCmdfifo_empty(); 00028 }
Generated on Fri Jul 15 2022 19:43:07 by
1.7.2