update library

This commit is contained in:
Siwat Sirichai 2023-09-16 18:02:44 +07:00
parent fd493ee596
commit 8a112e8f13
2 changed files with 4 additions and 23 deletions

View File

@ -5,21 +5,6 @@ void lcd_send_stop_bit() {
Serial.write(0xFF); Serial.write(0xFF);
Serial.write(0xFF); Serial.write(0xFF);
} }
int lcd_get_int() {
return 0;
}
float lcd_get_float() {
}
String lcd_get_str() {
}
String lcd_set_var(String var, String value) {
}
void lcd_send_command(String command) { void lcd_send_command(String command) {
lcd_send_stop_bit(); lcd_send_stop_bit();
@ -27,14 +12,6 @@ void lcd_send_command(String command) {
lcd_send_stop_bit(); lcd_send_stop_bit();
} }
String lcd_wait_response() {
}
void lcd_touch_callback(int page, int id) {
}
void lcd_reset() { void lcd_reset() {
lcd_send_stop_bit(); lcd_send_stop_bit();
lcd_send_command("rest"); lcd_send_command("rest");

View File

@ -818,6 +818,10 @@ void lcd_top_bar_update()
{ {
String time_str = String(rtc.getHour()) + ":" + String(rtc.getMinute()); String time_str = String(rtc.getHour()) + ":" + String(rtc.getMinute());
panel.writeStr("time.txt", time_str); panel.writeStr("time.txt", time_str);
char time_buffer[15];
//rtctime_t time = ESPMega_getTime();
//sprintf(time_buffer, "%02d:%02d",time.hours,time.minutes);
//panel.writeStr("time.txt", time_buffer);
panel.writeNum("server.pic", standalone ? 4 : 5); panel.writeNum("server.pic", standalone ? 4 : 5);
panel.writeNum("lan.pic", ETH.linkUp() ? 3 : 2); panel.writeNum("lan.pic", ETH.linkUp() ? 3 : 2);
} }