test
Dependencies: ad5422_arduino mbed LT1446 ADS1248-1 LM35-1 Flash FT813 PGA280_ADS1259
TFT/display.DisplayListFunctions.cpp@7:c364201bc3ed, 2020-09-01 (annotated)
- 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?
User | Revision | Line number | New contents of line |
---|---|---|---|
nikmaos | 3:d4b106bf3a32 | 1 | #include "display.h" |
nikmaos | 3:d4b106bf3a32 | 2 | |
nikmaos | 3:d4b106bf3a32 | 3 | /************************************************************************************************************************** |
nikmaos | 3:d4b106bf3a32 | 4 | ************************** Start display list ***************************************************************************** |
nikmaos | 3:d4b106bf3a32 | 5 | **************************************************************************************************************************/ |
nikmaos | 3:d4b106bf3a32 | 6 | void Display::StartDL() |
nikmaos | 3:d4b106bf3a32 | 7 | { |
nikmaos | 3:d4b106bf3a32 | 8 | (*_TFT).DLstart(); |
nikmaos | 3:d4b106bf3a32 | 9 | // set white color for background |
nikmaos | 3:d4b106bf3a32 | 10 | (*_TFT).DL(CLEAR_COLOR_RGB(255, 255, 255)); |
nikmaos | 3:d4b106bf3a32 | 11 | // clear buffers for preset values |
nikmaos | 3:d4b106bf3a32 | 12 | (*_TFT).DL(CLEAR(1, 1, 1)); |
nikmaos | 3:d4b106bf3a32 | 13 | } |
nikmaos | 3:d4b106bf3a32 | 14 | |
nikmaos | 3:d4b106bf3a32 | 15 | /************************************************************************************************************************** |
nikmaos | 3:d4b106bf3a32 | 16 | ************************** Finish display list **************************************************************************** |
nikmaos | 3:d4b106bf3a32 | 17 | **************************************************************************************************************************/ |
nikmaos | 3:d4b106bf3a32 | 18 | void Display::FinishDL() |
nikmaos | 3:d4b106bf3a32 | 19 | { |
nikmaos | 3:d4b106bf3a32 | 20 | (*_TFT).DL(DISPLAY()); |
nikmaos | 3:d4b106bf3a32 | 21 | // Swap the current display list |
nikmaos | 3:d4b106bf3a32 | 22 | (*_TFT).Swap(); |
nikmaos | 3:d4b106bf3a32 | 23 | // Download the command list into fifo TFT |
nikmaos | 3:d4b106bf3a32 | 24 | (*_TFT).Flush_Co_Buffer(); |
nikmaos | 3:d4b106bf3a32 | 25 | // Wait for the complete consumption of FT800 Coprocessor commands |
nikmaos | 3:d4b106bf3a32 | 26 | (*_TFT).WaitCmdfifo_empty(); |
nikmaos | 3:d4b106bf3a32 | 27 | } |
nikmaos | 3:d4b106bf3a32 | 28 |