HYT humidity & temp sensor polling / showing received data at TFT with capacitive touchscreen

Dependencies:   FT800_2 HYT mbed

Embed: (wiki syntax)

« Back to documentation index

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

display.Draw_TimeSinceTurnOn.cpp

00001 #include "display.h"
00002 
00003 /**************************************************************************************************************************
00004 ************************** Write the string with gray field with current time HH:MM:SS ************************************
00005 **************************************************************************************************************************/
00006 void Display::TimeSinceTurnOn(uint64_t seconds)
00007 {
00008     (*_TFT).DL(COLOR_RGB(213, 213, 213));
00009     (*_TFT).DL(BEGIN(RECTS));
00010     (*_TFT).DL(VERTEX2II(300, 54, 0, 0));
00011     (*_TFT).DL(VERTEX2II(228, 81, 0, 0));
00012     (*_TFT).DL(COLOR_RGB(9, 0, 63));
00013     (*_TFT).Text(15, 60, 26, 0, "Time since device was turned on: ");
00014     CreateStringTime(timeStr, seconds);
00015     (*_TFT).Text(232, 60, 26, 0, timeStr);
00016 }