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.
Revision 2:61827b316d78, committed 2020-12-11
- Comitter:
- nz
- Date:
- Fri Dec 11 13:54:24 2020 +0000
- Parent:
- 1:eb2a62ab9e2f
- Commit message:
- sprintf to top
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Thu Dec 10 17:11:11 2020 +0000
+++ b/main.cpp Fri Dec 11 13:54:24 2020 +0000
@@ -43,7 +43,8 @@
int main()
{
//printf("Mbed OS %d.%d.%d.\n", MBED_MAJOR_VERSION, MBED_MINOR_VERSION, MBED_PATCH_VERSION);
-
+ sprintf(textbuff, "Mbed OS %d.%d.%d.", MBED_MAJOR_VERSION, MBED_MINOR_VERSION, MBED_PATCH_VERSION);
+
TFT.Init();
set_time(1577869200); // Set RTC time to 9:00:00, date to 01.01.2020
@@ -125,7 +126,6 @@
strftime(timebuff, 32, "%d.%m.%Y", localtime(&seconds));// Date
TFT.drawText(420,50, 27, BLACK, OPT_CENTERX, timebuff);
- sprintf(textbuff, "Mbed OS %d.%d.%d.", MBED_MAJOR_VERSION, MBED_MINOR_VERSION, MBED_PATCH_VERSION);
TFT.drawText(10, 25, 27, BLACK, OPT_FLAT, textbuff); // Mbed Version
TFT.DLend();