The final project of Embedde class.
Dependencies: C12832 LM75B ESP-call MMA7660
PAGE.cpp
00001 #include "PAGE.h" 00002 00003 void lcdShowInitDevicePage(bool cls) 00004 { 00005 if(cls == 1) { 00006 _lcd.cls(); 00007 } 00008 _lcd.locate(0, 0); 00009 _lcd.printf("Init device"); 00010 } 00011 void lcdShowTryToConnectPage(bool cls) 00012 { 00013 if(cls == 1) { 00014 _lcd.cls(); 00015 } 00016 _lcd.locate(0, 0); 00017 _lcd.printf("Try to connect:"); 00018 _lcd.locate(0, 10); 00019 _lcd.printf("%s", wifiSSID); 00020 } 00021 void lcdShowMyIPPage(bool cls) 00022 { 00023 if(cls == 1) { 00024 _lcd.cls(); 00025 } 00026 _lcd.locate(0, 10); 00027 _lcd.printf("%s", wifiIpAddress); 00028 } 00029 00030 void lcdShowDaytime(bool cls) 00031 { 00032 if(cls == 1) { 00033 _lcd.cls(); 00034 } 00035 _lcd.locate(0, 20); 00036 _lcd.printf("%02d:%02d:%02d", timerHour, timerMinute, timerSecond); 00037 } 00038 void lcdShowAlerttime(bool cls) 00039 { 00040 if(cls == 1) { 00041 _lcd.cls(); 00042 } 00043 _lcd.locate(64, 20); 00044 if(alarmState == true) { 00045 _lcd.printf("%02d:%02d:%02d", alarmHour, alarmMinute, alarmSecond); 00046 } else { 00047 _lcd.printf("xx:xx:xx"); 00048 } 00049 } 00050
Generated on Fri Jul 15 2022 05:56:23 by 1.7.2