Compare commits

...

3 Commits

Author SHA1 Message Date
Siwat Sirichai 0a3a39a7e8 Update platformio.ini 2023-09-16 18:03:04 +07:00
Siwat Sirichai 771642c3db Update main.cpp 2023-09-16 18:02:56 +07:00
Siwat Sirichai 8a112e8f13 update library 2023-09-16 18:02:44 +07:00
3 changed files with 7 additions and 27 deletions

View File

@ -12,7 +12,7 @@
platform = espressif32 platform = espressif32
board = wt32-eth01 board = wt32-eth01
framework = arduino framework = arduino
lib_deps = siwats/ESPMegaPROR3@^1.1.5 lib_deps = siwats/ESPMegaPROR3@^1.2.1
knolleary/PubSubClient@^2.8 knolleary/PubSubClient@^2.8
ivanseidel/ArduinoThread@^2.1.1 ivanseidel/ArduinoThread@^2.1.1
arduino-libraries/Arduino_BuiltIn@^1.0.0 arduino-libraries/Arduino_BuiltIn@^1.0.0
@ -20,4 +20,5 @@ lib_deps = siwats/ESPMegaPROR3@^1.1.5
z3t0/IRremote@^4.2.0 z3t0/IRremote@^4.2.0
robtillaart/DHTNEW@^0.4.18 robtillaart/DHTNEW@^0.4.18
seithan/Easy Nextion Library@^1.0.6 seithan/Easy Nextion Library@^1.0.6
monitor_speed = 115200 monitor_speed = 115200
board_build.partitions = no_ota.csv

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

@ -816,8 +816,10 @@ void lcd_refresh()
} }
void lcd_top_bar_update() void lcd_top_bar_update()
{ {
String time_str = String(rtc.getHour()) + ":" + String(rtc.getMinute()); char time_buffer[15];
panel.writeStr("time.txt", time_str); //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);
} }