Andrew Reed
/
NTP-Demo+Sensor
NTP demo for cypress Pioneer and Proto Dev kits also reads available analogue sensors
Diff: main.cpp
- Revision:
- 8:4d13f66d6b5f
- Parent:
- 7:a92448410a8e
--- 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);