Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: FT800_2 HYT mbed
TFT/display.Draw_TimeSinceTurnOn.cpp@1:8ca8a4ecbe6b, 2016-10-12 (annotated)
- Committer:
- Ksenia
- Date:
- Wed Oct 12 10:53:35 2016 +0000
- Revision:
- 1:8ca8a4ecbe6b
- Parent:
- 0:9db07391e780
?????? ??????? ? ?????? ?????????
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| Ksenia | 0:9db07391e780 | 1 | #include "display.h" |
| Ksenia | 0:9db07391e780 | 2 | |
| Ksenia | 0:9db07391e780 | 3 | /************************************************************************************************************************** |
| Ksenia | 0:9db07391e780 | 4 | ************************** Write the string with gray field with current time HH:MM:SS ************************************ |
| Ksenia | 0:9db07391e780 | 5 | **************************************************************************************************************************/ |
| Ksenia | 0:9db07391e780 | 6 | void Display::TimeSinceTurnOn(uint64_t seconds) |
| Ksenia | 0:9db07391e780 | 7 | { |
| Ksenia | 0:9db07391e780 | 8 | (*_TFT).DL(COLOR_RGB(213, 213, 213)); |
| Ksenia | 0:9db07391e780 | 9 | (*_TFT).DL(BEGIN(RECTS)); |
| Ksenia | 0:9db07391e780 | 10 | (*_TFT).DL(VERTEX2II(340 + 72, 56, 0, 0)); |
| Ksenia | 0:9db07391e780 | 11 | (*_TFT).DL(VERTEX2II(340, 56 + 27, 0, 0)); |
| Ksenia | 0:9db07391e780 | 12 | (*_TFT).DL(COLOR_RGB(9, 0, 63)); |
| Ksenia | 0:9db07391e780 | 13 | CreateStringRussian("Время с момента включения устройства"); |
| Ksenia | 0:9db07391e780 | 14 | (*_TFT).Text(18, 60, 4, 0, russianStr); |
| Ksenia | 0:9db07391e780 | 15 | CreateStringTime(timeStr, seconds); |
| Ksenia | 0:9db07391e780 | 16 | (*_TFT).Text(340 + 8, 63, 26, 0, timeStr); |
| Ksenia | 0:9db07391e780 | 17 | } |