mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2025-12-23 16:04:25 +01:00
23 lines
932 B
Plaintext
23 lines
932 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,sys1=0,sys2=0 //At present, the definition of global variable only supports 4-byte signed integer (int), and other types of global quantity declaration are not supported. If you want to use string type, you can use variable control in the page to implement
|
|
int bufferPos=0
|
|
int recvCrc=0
|
|
int payloadLength=0
|
|
int par0=0,par1=0
|
|
// sleep timeout in s
|
|
int sleepTimeout=20
|
|
int sleepValue=0
|
|
// dim value
|
|
int dimValue=40
|
|
int dimValueNormal=100
|
|
//color vars
|
|
int defaultFontColor=65535
|
|
int defaultBcoColor=6371
|
|
//feature flags
|
|
int featNewSliders=0
|
|
// fix touch offset
|
|
lcd_dev fffb 0002 0000 0020
|
|
printh 00 00 00 ff ff ff 88 ff ff ff//Output power on information to serial port
|
|
page pageStartup
|