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 8:4d13f66d6b5f, committed 2020-07-03
- Comitter:
- reedas
- Date:
- Fri Jul 03 21:40:09 2020 +0100
- Parent:
- 7:a92448410a8e
- Commit message:
- vt100 codes
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Fri Jul 03 16:35:46 2020 +0100 +++ b/main.cpp Fri Jul 03 21:40:09 2020 +0100 @@ -135,7 +135,7 @@ GUI_SetFont(GUI_FONT_32B_1); GUI_DispStringHCenterAt(buffer, LCD_GetXSize() / 2, LCD_GetYSize() / 2 - GUI_GetFontSizeY() / 2 - 60); - printf("%s%c[K", buffer, 0x1b); + printf("%s%c[K\r", buffer, 0x1b); #endif printf("%c[4A", 0x1b); // Cursor up 4 } @@ -249,6 +249,7 @@ GUI_Init(); printf("%c[2J", 0x1b); // Clear Screen printf("%c[?25l", 0x1b); // Cursor Off + printf("%c[H", 0x1b); // Cursor Home displayQueue = mbed_event_queue(); displayQueue->call_every(1s, &updateDisplayTime); displayQueue->call_every(100ms, &readSensors);