From 0af0d2fbaf5a59404ca61d115a156d9fca53bf67 Mon Sep 17 00:00:00 2001 From: Edward Firmo <94725493+edwardtfn@users.noreply.github.com> Date: Tue, 19 Sep 2023 11:29:55 +0200 Subject: [PATCH] Add screensaver to `nspanel_blank.tft` And build a new tft with latest firmware and url for instructions. --- custom_configuration/nspanel_blank.HMI | Bin 7346184 -> 7346184 bytes custom_configuration/nspanel_blank.tft | Bin 264692 -> 266972 bytes .../nspanel_blank_code/Program.s.txt | 1 - .../nspanel_blank_code/blank.txt | 57 ++++++++++++++++++ .../nspanel_blank_code/screensaver.txt | 25 ++++++++ 5 files changed, 82 insertions(+), 1 deletion(-) create mode 100644 custom_configuration/nspanel_blank_code/blank.txt create mode 100644 custom_configuration/nspanel_blank_code/screensaver.txt diff --git a/custom_configuration/nspanel_blank.HMI b/custom_configuration/nspanel_blank.HMI index da4871976cc02c000419dc5c2b4b046f459ebdf3..ea824fc5f7e987edc2a8c4230325558e133c84dc 100644 GIT binary patch delta 762 zcmd6l&r2IY6vt<>?nbFwwNULb;K5$jrMIZDtx@amTKhw*R^uj{#59}Pv011`rQb!5 z3SzGQ2||@zL_KIP1+nBG=&gGSJqi}n+2F;SH+}G#_a5`*eILxM?;cC*f{jU9-kf^2 z5UC}EoR&z=$guXou_4h_OKg*hv<%sFgnnQE=16c=Xima=s^^{=tDnVVE}^|!Z1cKiZQ&#INo3aZ}ATA z@d1;V!bePF2DA8tIm{!51sI4U0TW52kj5f1_>3$p@fAhMH?{nU)D}7$d9N OVfxehX)&g9mHr0{d+d|| delta 737 zcmd6ky-Pw-7{{avP3_MrzNT8*AtjW*pWXbf@? zDjZsZ_9XHTXmB`#Lw`V2=bA+jwAKqh&ikD6@;on`hU__IiZM*H$SbF}-`vN~EURnD2$u&zyL3Q$lDuO-McSi>t44lrfSKo>X``l?(4a zS2hINFoflX{-8xcgWSWK2jR9=)*v_qM7njZ}xzk8l~klBkwUD|yK>(*8* ztioU?TC$uuQV9!-Q_WYzLRzSVt$&}XwUc6D5QqjtJHhB)q|Rpkl)J3Xrh6ZqW)hh~ S+D#!X{xhxWcPD*`GWrhSsMs_B diff --git a/custom_configuration/nspanel_blank.tft b/custom_configuration/nspanel_blank.tft index 0fc428a5d338436d6ffaac31097e21c7dcf99fa2..f59d2430cbe0d764ac5eb7eb0b8ff61bde4e78a9 100644 GIT binary patch delta 2026 zcmc&#O>7%Q6rR}~r)!d?PErv9q;g%L3HWDix1|mQr~CvG0gCuLS%QtTX{|bIV{Z~@ zD2`N#DnMzg$XyAP9zaMO5J)W&LR`oxNIlR9M3D$09FVw_1LXh+b@|?`H+4!6+!*KW zy#3zy-n@D9X7l@EXzl&bsr!|+&eIRPmR&xw=hw0Aoqs*G`<|h%>QATx#?J3vzk7Nq z{@A&tZ{Im_*9-2?na?u6Exnc6HhF3N_`~l$`Sz>~pzD z**IwCA_L)EL}r-%i{K03jpdcFUF=rYqwY!I^wvNWRh$#9WUN3KzX08g){3Fb64ZL~JtVwfH6_z2 z5Ze$u6i(pueg6~ z+(`Ad?M&ykBXXIpeuqHbkeBQy^GS#bw9^^v7ytaLURT+bljrztR_B9 zUWO%%NRL8t5dULBQ5dVq=NWYFC-{x7t^bY*P@?#!WlH2sJlaFck)- zA#W~50~G`^~)?c4r zx_|0<&*PE8pEIw@>z7`RzxSqeIi`I$uF^3&Kl4*RPp>1rn=p#cN^T-5`39M>&R(j}_a3FKkGpNGsLu}4BJ6CIWbwKGH$NY6rK2Pqz^ z!$}jW2qwwx-LTI^aFVs)R6BfGhW&%T)O$=4%2tm&bwIy9Lj`yczI!9SQvV@K3GVsEDg*;xvRM-~gO> t{bSP*do9|97mmhovuV{=PqWDqWDB<1-`BFEIxVas;MwD5WG?gqpooTC5$ diff --git a/custom_configuration/nspanel_blank_code/Program.s.txt b/custom_configuration/nspanel_blank_code/Program.s.txt index c007e76..fb377bf 100644 --- a/custom_configuration/nspanel_blank_code/Program.s.txt +++ b/custom_configuration/nspanel_blank_code/Program.s.txt @@ -1,6 +1,5 @@ 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 bauds=115200//Configure baudrate dim=100//Configure backlight recmod=0//Serial data parsing mode:0-Passive mode;1-Active mode diff --git a/custom_configuration/nspanel_blank_code/blank.txt b/custom_configuration/nspanel_blank_code/blank.txt new file mode 100644 index 0000000..d9a07c5 --- /dev/null +++ b/custom_configuration/nspanel_blank_code/blank.txt @@ -0,0 +1,57 @@ +Page blank + Attributes + ID : 0 + Scope : local + Dragging : 0 + Send Component ID : disabled + Locked : no + Swide up page ID : disabled + Swide down page ID : disabled + Swide left page ID : disabled + Swide right page ID: disabled + + Events + Preinitialize Event + dim=100 + printh 92 + prints "nspanelevent",0 + printh 00 + prints "{\"page\": \"blank\", \"component\": \"currentpage\", \"value\": \"pagechange\", \"version\": \"2023.09.19\"}",0 + printh 00 + printh FF FF FF + + Touch Press Event + tm0.en=1 + + Touch Release Event + tm0.en=1 + +QR Code qr0 + Attributes + ID : 1 + Scope : local + Dragging : 0 + Send Component ID: disabled + Text : https://github.com/Blackymas/NSPanel_HA_Blueprint/blob/main/docs/en/nspanel_blank.md#what-to-do-after-installing-nspanel_blanktft + Max. Text Size : 150 + + Events + Touch Press Event + tm0.en=1 + + Touch Release Event + tm0.en=1 + +Timer tm0 + Attributes + ID : 2 + Scope : local + Period (ms): 65500 + Enabled : yes + + Events + Timer Event + tm0.en=0 + dim=0 + page screensaver + diff --git a/custom_configuration/nspanel_blank_code/screensaver.txt b/custom_configuration/nspanel_blank_code/screensaver.txt new file mode 100644 index 0000000..4b56623 --- /dev/null +++ b/custom_configuration/nspanel_blank_code/screensaver.txt @@ -0,0 +1,25 @@ +Page screensaver + Attributes + ID : 0 + Scope : local + Dragging : 0 + Send Component ID : disabled + Locked : no + Swide up page ID : disabled + Swide down page ID : disabled + Swide left page ID : disabled + Swide right page ID: disabled + + Events + Preinitialize Event + printh 92 + prints "nspanelevent",0 + printh 00 + prints "{\"page\": \"blank-screensaver\", \"component\": \"currentpage\", \"value\": \"pagechange\", \"version\": \"2023.09.19\"}",0 + printh 00 + printh FF FF FF + dim=0 + + Touch Press Event + page blank +