Update espmega_iot_core.cpp

This commit is contained in:
Siwat Sirichai 2023-09-30 14:28:21 +07:00
parent 5f6043e887
commit d0a7389bf9
1 changed files with 6 additions and 6 deletions

View File

@ -131,6 +131,12 @@ void setup()
lcd_send_stop_bit();
lcd_init();
lcd_begin();
#ifdef ENABLE_EXTERNAL_LCD
Serial2.print("rest");
Serial2.write(0xFF);
Serial2.write(0xFF);
Serial2.write(0xFF);
#endif
lcd_send_command("boot_state.txt=\"Core Initializing . . .\"");
Serial.println("Initializing Infrared . . .");
lcd_send_command("boot_state.txt=\"Infrared Initializing . . .\"");
@ -147,12 +153,6 @@ void setup()
Serial.println("Jumping to User Code.");
user_init();
lcd_send_command("page dashboard");
#ifdef ENABLE_EXTERNAL_LCD
Serial2.print("rest");
Serial2.write(0xFF);
Serial2.write(0xFF);
Serial2.write(0xFF);
#endif
}