The final project of Embedde class.

Dependencies:   C12832 LM75B ESP-call MMA7660

LCD/PAGE/PAGE.cpp

Committer:
pkr7098
Date:
2021-06-03
Revision:
2:37756b51ccdb
Parent:
1:ed1c6618f739

File content as of revision 2:37756b51ccdb:

#include "PAGE.h"

void lcdShowInitDevicePage(bool cls)
{
    if(cls == 1) {
        _lcd.cls();
    }
    _lcd.locate(0, 0);
    _lcd.printf("Init device");
}
void lcdShowTryToConnectPage(bool cls)
{
    if(cls == 1) {
        _lcd.cls();
    }
    _lcd.locate(0, 0);
    _lcd.printf("Try to connect:");
    _lcd.locate(0, 10);
    _lcd.printf("%s", wifiSSID);
}
void lcdShowMyIPPage(bool cls)
{
    if(cls == 1) {
        _lcd.cls();
    }
    _lcd.locate(0, 10);
    _lcd.printf("%s", wifiIpAddress);
}

void lcdShowDaytime(bool cls)
{
    if(cls == 1) {
        _lcd.cls();
    }
    _lcd.locate(0, 20);
    _lcd.printf("%02d:%02d:%02d", timerHour, timerMinute, timerSecond);
}
void lcdShowAlerttime(bool cls)
{
    if(cls == 1) {
        _lcd.cls();
    }
    _lcd.locate(64, 20);
    if(alarmState == true) {
        _lcd.printf("%02d:%02d:%02d", alarmHour, alarmMinute, alarmSecond);
    } else {
        _lcd.printf("xx:xx:xx");
    }
}