mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2025-12-26 01:14:25 +01:00
15 lines
669 B
Plaintext
15 lines
669 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
|
|
page pageStartup
|