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: SDFileSystem ds3231 eeprom_Nikita mbed testUniGraphic_150217
Fork of merged_code2_3rd_nov_2017 by
Diff: display_modules.cpp
- Revision:
- 5:a3ea7c82b7e1
- Parent:
- 4:6bd81bb1790d
- Child:
- 6:5e33a0f01476
--- a/display_modules.cpp Wed Mar 01 18:49:33 2017 +0000 +++ b/display_modules.cpp Thu Mar 30 11:34:04 2017 +0000 @@ -23,7 +23,8 @@ lcd.ClearScreen(); lcd.SetFont(&TerminusFont); epoch_time=rtc_read(); // read the time from rtc module - sprintf(buff1 ,"%s", ctime(&epoch_time)); // display time on LCD + // sprintf(buff1 ,"%s", ctime(&epoch_time)); // display time on LCD + strftime(buff1, 32, "%d/%m/%Y %H:%M",localtime(&epoch_time)); lcd.Print( buff1,20,100,COLOR_YELLOW,COLOR_BLACK, 0); lcd.SetFont(&TerminusBigFont); lcd.Print( "SENSESEMI",50,20,COLOR_WHITE,COLOR_BLACK, 0); @@ -43,7 +44,7 @@ char buff2[10]; - lcd.FillRect(5,10,250,120,COLOR_BLACK); + lcd.FillRect(5,20,250,150,COLOR_BLACK); //lcd.Print( "SenseSmart", CENTER, 95); sprintf(buff2 ,"%d", pid); lcd.Print( "PATIENT ID",20,50,COLOR_YELLOW,COLOR_BLACK, 0);