Vitaliy Loginov
/
disp70
Riverdi 70
TFT/display.DisplayListFunctions.cpp
- Committer:
- vitlog
- Date:
- 2020-06-18
- Revision:
- 0:e46c1282b39f
File content as of revision 0:e46c1282b39f:
#include "display.h" /************************************************************************************************************************** ************************** Start display list ***************************************************************************** **************************************************************************************************************************/ void Display::StartDL() { (*_TFT).DLstart(); // set white color for background (*_TFT).DL(CLEAR_COLOR_RGB(255, 255, 255)); // clear buffers for preset values (*_TFT).DL(CLEAR(1, 1, 1)); } /************************************************************************************************************************** ************************** Finish display list **************************************************************************** **************************************************************************************************************************/ void Display::FinishDL() { (*_TFT).DL(DISPLAY()); // Swap the current display list (*_TFT).Swap(); // Download the command list into fifo TFT (*_TFT).Flush_Co_Buffer(); // Wait for the complete consumption of FT800 Coprocessor commands (*_TFT).WaitCmdfifo_empty(); }