Files

2 lines
12 KiB
Plaintext

{"components":[{"id":"_coretwoscreen","createTime":1697090343044,"name":"screen","x":0,"y":0,"width":320,"height":240,"backgroundColor":"#FFFFFF","backgroundImage":"","size":0,"screenType":"default","type":"screen"},{"id":"____buttonA","createTime":1697090343045,"name":"ButtonA","buttonIndex":0,"x":35,"y":216,"width":64,"height":24,"text":"ButtonA","visibility":false,"type":"button"},{"id":"____buttonB","createTime":1697090343045,"name":"ButtonB","buttonIndex":1,"x":125,"y":216,"width":64,"height":24,"text":"ButtonB","visibility":false,"type":"button"},{"id":"____buttonC","createTime":1697090343045,"name":"ButtonC","buttonIndex":2,"x":215,"y":216,"width":64,"height":24,"text":"ButtonC","visibility":false,"type":"button"}],"type":"core2","versions":"Beta","units":[],"hats":[],"stamps":[],"blockly":"<variables><variable id=\"-o-DI2Z05mfy%zJ8iU`#\">padding</variable><variable id=\"@2v[6(H;I73wwp`nsbVC\">fontSize</variable><variable id=\"#n5HWY!Zae![ax,9]kEh\">text</variable><variable id=\"G2zd^:-SED0sp:FK~`Cx\">printerMAC</variable></variables><block type=\"basic_on_setup\" id=\"setup_block\" deletable=\"false\" x=\"50\" y=\"50\"><next><block type=\"variables_set\" id=\"WZOihyulI::w9VlY@NOZ\"><field name=\"VAR\" id=\"G2zd^:-SED0sp:FK~`Cx\">printerMAC</field><value name=\"VALUE\"><block type=\"text\" id=\";;P()!F6lh^KTzpXbTj|\"><field name=\"TEXT\">94:B9:7E:8D:A1:F5</field></block></value><next><block type=\"screen_set_brightness\" id=\"Dec!ElXEliKG5|t}*y8#\"><value name=\"BRIGHTNESS\"><shadow type=\"math_slider\" id=\"iOEksk{Br:N?Ou;op(+N\"><field name=\"NUM\" max=\"100\" step=\"1\">0</field></shadow></value><next><block type=\"screen_set_bgcolor\" id=\"twg)#9Z~$(oM(@Acng$2\"><field name=\"COLOR\">#000000</field><next><block type=\"ntp_init_timezone\" id=\"}H^3A_t8_4(qUsnAKf#}\"><value name=\"host\"><shadow type=\"text\" id=\"jM-T=Mj]yjDGFr-jL6]{\"><field name=\"TEXT\">cn.pool.ntp.org</field></shadow></value><value name=\"h\"><shadow type=\"math_number\" id=\"N8CkVy+`[3{%sY!pOMK]\"><field name=\"NUM\">8</field></shadow></value><value name=\"min\"><shadow type=\"math_slider\" id=\"K]b0TALhb,L,8WT]Xo9I\"><field name=\"NUM\" max=\"60\" step=\"1\">0</field></shadow></value><next><block type=\"mqtt_set_client\" id=\"QJ}ec#FH.K-v2@kO[oA!\"><value name=\"ID\"><shadow type=\"text\" id=\"^Hue,6v4N85bs)l|FH%?\"><field name=\"TEXT\">Module PM2.5 #1</field></shadow></value><value name=\"SERVER\"><shadow type=\"text\" id=\"W0Ub!Ava,,P7Qv:`pm_!\"><field name=\"TEXT\">mqtt.m5stack.com</field></shadow></value><value name=\"PORT\"><shadow type=\"math_number\" id=\"l_n#Y_R=(UZYo2cczaZ,\"><field name=\"NUM\">1883</field></shadow></value><value name=\"USER\"><shadow type=\"text\" id=\"HfjxY(HvuH[U0]}p.Vn5\"><field name=\"TEXT\"></field></shadow></value><value name=\"PASSWORD\"><shadow type=\"text_password\" id=\"qe2IR6eJ2fc@T~utye6m\"><field name=\"TEXT\"></field></shadow></value><value name=\"KEEPALIVE\"><shadow type=\"math_slider\" id=\"*}E}Q=i~ulW3GC4{{0l{\"><field name=\"NUM\" max=\"65536\" step=\"1\">300</field></shadow></value><next><block type=\"mqtt_start\" id=\"JfV$CGHi}ATuJ1(8SEIH\"><next><block type=\"basic_on_loop\" id=\"yRYBeeANE6o3E0+rzx/L\"><statement name=\"LOOP\"><block type=\"mqtt_publish\" id=\"?]wP5z)#m~N/x+-{`9zR\"><value name=\"FROM\"><shadow type=\"text\" id=\"RFuO$GhCa3bu)ERwTIvX\"><field name=\"TEXT\"></field></shadow><block type=\"variables_get\" id=\"`1SnUb3(_AaNHseU5RY-\"><field name=\"VAR\" id=\"G2zd^:-SED0sp:FK~`Cx\">printerMAC</field></block></value><value name=\"MSG\"><shadow type=\"text\" id=\"_Ncv5)KbDyYg,c:RHy=V\"><field name=\"TEXT\"></field></shadow><block type=\"procedures_callreturn\" id=\"M4oa,d|mJKq4Ph),;7l`\"><mutation name=\"formatText\"><arg name=\"padding\"></arg><arg name=\"fontSize\"></arg><arg name=\"text\"></arg></mutation><value name=\"ARG0\"><block type=\"math_number\" id=\"EpLo2DJc@5N.7L)CH.FU\"><field name=\"NUM\">0</field></block></value><value name=\"ARG1\"><block type=\"math_number\" id=\"`iDEw$lL2]rq,_hMk^_x\"><field name=\"NUM\">0</field></block></value><value name=\"ARG2\"><block type=\"ntp_get_date_time_format\" id=\".hZK8?yG)Mbyu_tYYK7^\"><value name=\"date\"><shadow type=\"text\" id=\"MC2M6tSolWb)?ku?n2Pm\"><field name=\"TEXT\">-</field></shadow></value><value name=\"time\"><shadow type=\"text\" id=\"/2JH{R3nsnayxQipEV-P\"><field name=\"TEXT\">:</field></shadow></value></block></value></block></value><value name=\"qos\"><shadow type=\"math_slider\" id=\"HU[K3Mu.7G^|,r9%cGZD\"><field name=\"NUM\" max=\"2\" step=\"1\">0</field></shadow></value><next><block type=\"mqtt_publish\" id=\"Igi{*NpEDkdX+{{.Uf(o\"><value name=\"FROM\"><shadow type=\"text\"><field name=\"TEXT\"></field></shadow><block type=\"variables_get\" id=\"Y@dDi[WKIL_.#D3}`CNI\"><field name=\"VAR\" id=\"G2zd^:-SED0sp:FK~`Cx\">printerMAC</field></block></value><value name=\"MSG\"><shadow type=\"text\"><field name=\"TEXT\"></field></shadow><block type=\"procedures_callreturn\" id=\"8wWPQK(i9K)35[6Z;3o$\"><mutation name=\"formatText\"><arg name=\"padding\"></arg><arg name=\"fontSize\"></arg><arg name=\"text\"></arg></mutation><value name=\"ARG0\"><block type=\"math_number\" id=\"3D66`%y8Y=$PZ^seRK{G\"><field name=\"NUM\">0</field></block></value><value name=\"ARG1\"><block type=\"math_number\" id=\"rstOA1%{wXD6JE|_Bs/q\"><field name=\"NUM\">0</field></block></value><value name=\"ARG2\"><block type=\"text_add\" id=\"mF=f%`hQ.#9s*czyOeM4\"><value name=\"arg0\"><shadow type=\"text\" id=\"n_V8LbiowQ4KyAbm8SVy\"><field name=\"TEXT\">2.5 um = </field></shadow></value><value name=\"arg1\"><block type=\"get_num_above\" id=\"?^9t__*.@fS8hS{y!yj(\"><field name=\"select\">2_5</field></block></value></block></value></block></value><value name=\"qos\"><shadow type=\"math_slider\" id=\"8_s7]5C@KSc$.qtv=4il\"><field name=\"NUM\" max=\"2\" step=\"1\">0</field></shadow></value><next><block type=\"mqtt_publish\" id=\"1TVK@Om|i+FEi^yj?!ss\"><value name=\"FROM\"><shadow type=\"text\"><field name=\"TEXT\"></field></shadow><block type=\"variables_get\" id=\"=1x6%p=,n7@9#UEpRL#%\"><field name=\"VAR\" id=\"G2zd^:-SED0sp:FK~`Cx\">printerMAC</field></block></value><value name=\"MSG\"><shadow type=\"text\"><field name=\"TEXT\"></field></shadow><block type=\"procedures_callreturn\" id=\"oH~B432F2jKe)Ql9kUwX\"><mutation name=\"formatText\"><arg name=\"padding\"></arg><arg name=\"fontSize\"></arg><arg name=\"text\"></arg></mutation><value name=\"ARG0\"><block type=\"math_number\" id=\"n?HIQ8YTJP1~=WhX;)2z\"><field name=\"NUM\">0</field></block></value><value name=\"ARG1\"><block type=\"math_number\" id=\"]pgo2jn{|6;w0Hz-R=Qg\"><field name=\"NUM\">0</field></block></value><value name=\"ARG2\"><block type=\"text_add\" id=\"q[8^R~,[@V*XH0*9N$07\"><value name=\"arg0\"><shadow type=\"text\" id=\"C~44~KZvk{}E+X30Vko[\"><field name=\"TEXT\">5 um = </field></shadow></value><value name=\"arg1\"><block type=\"get_num_above\" id=\"%}Q^Q|h*]^TH6JeDTcty\"><field name=\"select\">5</field></block></value></block></value></block></value><value name=\"qos\"><shadow type=\"math_slider\" id=\"*Dm9P@K7X^UR=)LOaX)z\"><field name=\"NUM\" max=\"2\" step=\"1\">0</field></shadow></value><next><block type=\"mqtt_publish\" id=\"fcvL9py?_}9xEHSf3CRo\"><value name=\"FROM\"><shadow type=\"text\"><field name=\"TEXT\"></field></shadow><block type=\"variables_get\" id=\"0eqM;[;-.lL7/$!/xMDN\"><field name=\"VAR\" id=\"G2zd^:-SED0sp:FK~`Cx\">printerMAC</field></block></value><value name=\"MSG\"><shadow type=\"text\"><field name=\"TEXT\"></field></shadow><block type=\"procedures_callreturn\" id=\"@1g;NaE{7J+st:P]SEa?\"><mutation name=\"formatText\"><arg name=\"padding\"></arg><arg name=\"fontSize\"></arg><arg name=\"text\"></arg></mutation><value name=\"ARG0\"><block type=\"math_number\" id=\"ur-sNO7jDnz*QGV-da}1\"><field name=\"NUM\">0</field></block></value><value name=\"ARG1\"><block type=\"math_number\" id=\"bvA6:SXM`z`4igQY334I\"><field name=\"NUM\">0</field></block></value><value name=\"ARG2\"><block type=\"text_add\" id=\"fL?5|N.Y$Nb2T[Y{2,Qm\"><value name=\"arg0\"><shadow type=\"text\" id=\"nBAPh%^i{OM@}pr$Qv?A\"><field name=\"TEXT\">10 um = </field></shadow></value><value name=\"arg1\"><block type=\"get_num_above\" id=\"kN.!D5y`==x~ntQSb}ch\"><field name=\"select\">10</field></block></value></block></value></block></value><value name=\"qos\"><shadow type=\"math_slider\" id=\"dE??mSA6`=pyUWvHL}uP\"><field name=\"NUM\" max=\"2\" step=\"1\">0</field></shadow></value><next><block type=\"timer_delay\" id=\"}GS(nF!qfB,]n[9T.^KJ\"><value name=\"DELAY\"><shadow type=\"math_number\" id=\"?%])X-D/|0p8[P6015:Z\"><field name=\"NUM\">10</field></shadow></value></block></next></block></next></block></next></block></next></block></statement></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block><block type=\"procedures_defreturn\" id=\"#6%ufkev!vW+e(y`y%Cn\" x=\"710\" y=\"50\"><mutation><arg name=\"padding\" varid=\"-o-DI2Z05mfy%zJ8iU`#\"></arg><arg name=\"fontSize\" varid=\"@2v[6(H;I73wwp`nsbVC\"></arg><arg name=\"text\" varid=\"#n5HWY!Zae![ax,9]kEh\"></arg></mutation><field name=\"NAME\">formatText</field><comment pinned=\"false\" h=\"80\" w=\"160\">Describe this function...</comment><statement name=\"STACK\"><block type=\"variables_set\" id=\"AGW(JU`6t*VeZ%n0n|#h\"><field name=\"VAR\" id=\"-o-DI2Z05mfy%zJ8iU`#\">padding</field><value name=\"VALUE\"><block type=\"convent_str\" id=\"n(Uo6-dG4/sZ|p#ib-ue\"><value name=\"VALUE\"><block type=\"variables_get\" id=\"z(/Ah#C0dnNCoDRwqOl`\"><field name=\"VAR\" id=\"-o-DI2Z05mfy%zJ8iU`#\">padding</field></block></value></block></value><next><block type=\"variables_set\" id=\"`o*ln3Y7$BeZ=yqLMOB`\"><field name=\"VAR\" id=\"@2v[6(H;I73wwp`nsbVC\">fontSize</field><value name=\"VALUE\"><block type=\"convent_str\" id=\"LqT$o@g@GnN=2vk.2N/m\"><value name=\"VALUE\"><block type=\"variables_get\" id=\"J_E.u|[y2!D[s*@:^`#$\"><field name=\"VAR\" id=\"@2v[6(H;I73wwp`nsbVC\">fontSize</field></block></value></block></value></block></next></block></statement><value name=\"RETURN\"><block type=\"text_add\" id=\"jFNR)XG,2hv.}3J0rGZf\"><value name=\"arg0\"><shadow type=\"text\" id=\"crB@NFP]nhKy8^X,,(gb\" disabled=\"true\"><field name=\"TEXT\">TEXT:</field></shadow><block type=\"text_add\" id=\"CtJg2-eKKn2}hBEirz6D\"><value name=\"arg0\"><shadow type=\"text\" id=\"#lQFiYCMmrK*h8:VhY~B\" disabled=\"true\"><field name=\"TEXT\">TEXT:</field></shadow><block type=\"text_add\" id=\"N2(!oXoCDUquXt7-3iBL\"><value name=\"arg0\"><shadow type=\"text\" id=\"xh58vO!Gf*;a$O9lFbrJ\" disabled=\"true\"><field name=\"TEXT\">TEXT:</field></shadow><block type=\"text_add\" id=\"{DWs~a3u[`/s%X.W0-WN\"><value name=\"arg0\"><shadow type=\"text\" id=\"zBgfdqv+%YhD=Jm}*Fuz\" disabled=\"true\"><field name=\"TEXT\">TEXT:</field></shadow><block type=\"text_add\" id=\"Z:2)]X!I(|q07H:ca7Q=\"><value name=\"arg0\"><shadow type=\"text\" id=\"Mdv$iY7u2U9td}:J$u3^\"><field name=\"TEXT\">TEXT:</field></shadow></value><value name=\"arg1\"><block type=\"variables_get\" id=\"{qc3hqxq[9hMZz[U!L2{\"><field name=\"VAR\" id=\"-o-DI2Z05mfy%zJ8iU`#\">padding</field></block></value></block></value><value name=\"arg1\"><block type=\"text\" id=\"d/l@*c_(pI/E@L$S5)it\"><field name=\"TEXT\">,</field></block></value></block></value><value name=\"arg1\"><block type=\"variables_get\" id=\"yL_p]R}Nc)2TKre43k,w\"><field name=\"VAR\" id=\"@2v[6(H;I73wwp`nsbVC\">fontSize</field></block></value></block></value><value name=\"arg1\"><block type=\"text\" id=\"KH~MHu^S.{9U}F37N$ln\"><field name=\"TEXT\">:</field></block></value></block></value><value name=\"arg1\"><block type=\"variables_get\" id=\"jn%HUYrdc27`[AfQ$3:,\"><field name=\"VAR\" id=\"#n5HWY!Zae![ax,9]kEh\">text</field></block></value></block></value></block>","Blockly.Remotes":[],"Blockly.RemotePlus":[{"id":"__title","blockId":"","createTime":1697090342955,"name":"M5RemoteTitle","dragAndDrop":false,"resizable":false,"options":{"minWidth":1,"minHeight":1,"maxWidth":6,"maxHeight":10,"defaultWidth":2,"defaultHeight":1},"w":2,"h":1,"bgColor":"#0080FF","color":"#fff","fontsize":"M","label":"M5Remote","interval":3000,"code":"","event":"","dataSource":"none","ezdataToken":"evgc7MUNVnDUQFJvVvf6kpw1CWrlJ7dn","topic":"","needShadow":false,"type":"title","x":null,"y":null}],"modules":[],"cbIdList_":[],"eventCBIdList_":[],"apikey":"","uuid":"01d1f8f7-1b99-41c1-a0c0-3d70306371eb"}