Files
NSPanel_HA_Blueprint/advanced/hmi/nspanel_blank_code/Program.s.txt
Edward Firmo 4ad5457b0f ESPHome Watchdog
This implements a watchdog script with complementing the scripts `on_setup` and `refresh_wifi_icon` to be checking the components every minute and taking proper actions (when possible).
Solves #1464
2023-12-27 13:57:16 +01:00

9 lines
481 B
Plaintext

Program.s
//The following code is only run once when power on, and is generally used for global variable definition and power on initialization data
int sys0=0
int display_mode=4 // 1 = EU, 2 = US, 3 = US landscape, 4 = blank
dim=100//Configure backlight
recmod=0//Serial data parsing mode:0-Passive mode;1-Active mode
printh 00 00 00 ff ff ff 88 ff ff ff//Output power on information to serial port
page 0 //Power on start page 0