From 8a112e8f13e3fd6850048209b9ad63ee6abdbf5f Mon Sep 17 00:00:00 2001 From: Siwat Sirichai Date: Sat, 16 Sep 2023 18:02:44 +0700 Subject: [PATCH] update library --- src/lcd.cpp | 23 ----------------------- src/main.cpp | 4 ++++ 2 files changed, 4 insertions(+), 23 deletions(-) diff --git a/src/lcd.cpp b/src/lcd.cpp index db62070..1a74694 100644 --- a/src/lcd.cpp +++ b/src/lcd.cpp @@ -5,21 +5,6 @@ void lcd_send_stop_bit() { 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) { lcd_send_stop_bit(); @@ -27,14 +12,6 @@ void lcd_send_command(String command) { lcd_send_stop_bit(); } -String lcd_wait_response() { - -} - -void lcd_touch_callback(int page, int id) { - -} - void lcd_reset() { lcd_send_stop_bit(); lcd_send_command("rest"); diff --git a/src/main.cpp b/src/main.cpp index d72f841..aea4b1e 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -818,6 +818,10 @@ void lcd_top_bar_update() { String time_str = String(rtc.getHour()) + ":" + String(rtc.getMinute()); 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("lan.pic", ETH.linkUp() ? 3 : 2); }