You've already forked UIFlowLessons
mirror of
https://github.com/m5stack/UIFlowLessons.git
synced 2026-05-20 11:02:19 -07:00
34a000ba25
– API code has been removed. – The SignedByte block has been moved to the top of the program.
2 lines
8.7 KiB
Plaintext
2 lines
8.7 KiB
Plaintext
{"components":[{"id":"____screen","createTime":1694411783577,"name":"screen","x":0,"y":0,"width":320,"height":240,"backgroundColor":"#222222","backgroundImage":"","size":0,"screenType":"default","type":"screen"}],"type":"atom","versions":"Beta","units":[],"hats":[],"stamps":[],"blockly":"<variables><variable id=\"O|19Xu=HUI:^K`J,yrUJ\">seconds</variable><variable id=\"0nUY#oAsrXQPW0x*KcX^\">hold</variable><variable id=\"YJ(f@rNc#uYr*k2.f(WY\">wake</variable><variable id=\"$^m:LVeK~k]g$xRhw,?L\">sda</variable><variable id=\"C%/M0-sqb@.FiAbvg|3M\">scl</variable><variable id=\"S-*_%fE-Go7ZIf,}m`$O\">sensorStatus</variable></variables><block type=\"basic_on_setup\" id=\"setup_block\" deletable=\"false\" x=\"30\" y=\"-70\"><next><block type=\"variables_set\" id=\"$v4[;c?mY)=H2p_-jX]}\"><field name=\"VAR\" id=\"0nUY#oAsrXQPW0x*KcX^\">hold</field><value name=\"VALUE\"><block type=\"math_number\" id=\".9Rpxem1Mo/NGt!FbI4V\"><field name=\"NUM\">21</field></block></value><next><block type=\"variables_set\" id=\"hi0@FouNP1_HJq-g8pm;\"><field name=\"VAR\" id=\"YJ(f@rNc#uYr*k2.f(WY\">wake</field><value name=\"VALUE\"><block type=\"math_number\" id=\"y/s;QikLn;OkgOj0{5;Q\"><field name=\"NUM\">25</field></block></value><next><block type=\"variables_set\" id=\"Kfs#Ku%NN~a;SwRDq92!\"><field name=\"VAR\" id=\"$^m:LVeK~k]g$xRhw,?L\">sda</field><value name=\"VALUE\"><block type=\"math_number\" id=\"]}7B0(`7q5prm5:x`Nom\"><field name=\"NUM\">23</field></block></value><next><block type=\"variables_set\" id=\"@!#4G^POD$uoqttP|9}y\"><field name=\"VAR\" id=\"C%/M0-sqb@.FiAbvg|3M\">scl</field><value name=\"VALUE\"><block type=\"math_number\" id=\"v{@F3E=hC.RT/gr1:AZJ\"><field name=\"NUM\">33</field></block></value><next><block type=\"pins_digital_write\" id=\"WcI]:,TDwJ]FP{D0i)4U\"><value name=\"PIN\"><shadow type=\"math_number\"><field name=\"NUM\">21</field></shadow><block type=\"variables_get\" id=\"Hok0(wjvv/:[^T$F3lp[\"><field name=\"VAR\" id=\"0nUY#oAsrXQPW0x*KcX^\">hold</field></block></value><value name=\"VALUE\"><shadow type=\"math_number\" id=\"$ylpQ3:KF#o;*J~y{]iP\"><field name=\"NUM\">1</field></shadow></value><next><block type=\"pin_pinout\" id=\"dDbq{Kuyu7f+X}0+9gf@\"><field name=\"PINGS\">pin0</field><field name=\"MODE\">IN</field><field name=\"PULL\">PULL_DOWN</field><value name=\"PIN\"><shadow type=\"math_slider\" id=\"ZqS6%UDI!V]i^:uaQHza\"><field name=\"NUM\" max=\"36\" step=\"1\">0</field></shadow><block type=\"variables_get\" id=\"?hbW6a}khjEDlXg+4cSm\"><field name=\"VAR\" id=\"YJ(f@rNc#uYr*k2.f(WY\">wake</field></block></value><next><block type=\"variables_set\" id=\"4~[pbS9[,heRqnG(?RnU\"><field name=\"VAR\" id=\"S-*_%fE-Go7ZIf,}m`$O\">sensorStatus</field><value name=\"VALUE\"><block type=\"pin_get_value\" id=\"yc_PeD8pLb8?P{{}Xi_f\"><field name=\"PINGS\">pin0</field></block></value><next><block type=\"wifi_connect\" id=\"8HPAzzH7jU][(@#Hn;ms\"><next><block type=\"socket_udp_client_start\" id=\"aoghvzDPi9DC3Y`2^V-v\"><value name=\"ip\"><shadow type=\"text\" id=\"hdDDY@71O%/DAE/pO5h7\"><field name=\"TEXT\">192.168.1.147</field></shadow></value><value name=\"port\"><shadow type=\"math_number\" id=\"YOMJq*L.*P!z|,j4r6wK\"><field name=\"NUM\">53102</field></shadow></value><next><block type=\"controls_ifelse\" id=\"|JK[]UW(JOqmxXHYa?as\"><value name=\"IF0\"><block type=\"logic_compare\" id=\"^8e1%Ufu7lsr!%z(0!+2\"><field name=\"OP\">EQ</field><value name=\"A\"><block type=\"variables_get\" id=\"`1WXaq6u$`Tdrw;BA$0a\"><field name=\"VAR\" id=\"S-*_%fE-Go7ZIf,}m`$O\">sensorStatus</field></block></value><value name=\"B\"><block type=\"math_number\" id=\".ClVqfLi9CGHc84uciyW\"><field name=\"NUM\">0</field></block></value></block></value><statement name=\"DO0\"><block type=\"rgb_set_all\" id=\"6,{-[ZGY4V`,vY}(mF8F\"><field name=\"COLOR\">#33ff33</field><next><block type=\"socket_udp_write\" id=\"S({k3ZBm5|8dpBHc[9FQ\"><value name=\"msg\"><shadow type=\"text\" id=\"Ha]WU9ZRdIND5Dx5WsXZ\"><field name=\"TEXT\">Device is Online</field></shadow></value></block></next></block></statement><statement name=\"ELSE\"><block type=\"rgb_set_all\" id=\"7t5=@*|vys2T$r!9}kXB\"><field name=\"COLOR\">#ff0000</field><next><block type=\"socket_udp_write\" id=\"-^H|$YJ45(3.mVW2m4KM\"><value name=\"msg\"><shadow type=\"text\" id=\"urnY5b.;5E:hjf!HXL87\"><field name=\"TEXT\">Motion Detected</field></shadow></value></block></next></block></statement><next><block type=\"socket_udp_client_close\" id=\"5nu%H=8Mp#SS[v^Q2?,d\"><next><block type=\"iic_set_C\" id=\"3kPjM_ej(qpXSnWcz#L8\"><field name=\"i2c\">i2c0</field><field name=\"FREQ\">400000</field><value name=\"sda\"><shadow type=\"math_number\" id=\"oytH!441}e*gkTU]M%Nn\"><field name=\"NUM\">0</field></shadow><block type=\"variables_get\" id=\"rR_3T3,c,%)2Fg%A+*JM\"><field name=\"VAR\" id=\"$^m:LVeK~k]g$xRhw,?L\">sda</field></block></value><value name=\"scl\"><shadow type=\"math_number\" id=\".TLQAODofLH[qUd_dtPz\"><field name=\"NUM\">0</field></shadow><block type=\"variables_get\" id=\"mIT8Ji[k(kK1P4arY^fB\"><field name=\"VAR\" id=\"C%/M0-sqb@.FiAbvg|3M\">scl</field></block></value><next><block type=\"iic_set_slave_addr\" id=\"~91:#~ZIaheq-3G{@ftp\"><field name=\"i2c\">i2c0</field><field name=\"ADDRESS\">0x51</field><next><block type=\"procedures_callnoreturn\" id=\"Zo*46Cxqs[q8IS:9HL+G\"><mutation name=\"setTimer\"><arg name=\"seconds\"></arg></mutation><value name=\"ARG0\"><block type=\"math_number\" id=\"cpI+$D}1@/%,b.7DUNr`\"><field name=\"NUM\">15</field></block></value><next><block type=\"timer_delay\" id=\"kh?N,cp9F$e_,_S#b8%N\"><value name=\"DELAY\"><shadow type=\"math_number\" id=\"7zYGl7^v5a]vanOS(H]q\"><field name=\"NUM\">1</field></shadow></value><next><block type=\"rgb_set_all\" id=\"Rx{[@,YPdY$iYz!lC=U6\"><field name=\"COLOR\">#000000</field><next><block type=\"pins_digital_write\" id=\"XOoMcgo@Syt)Q0QtiP?b\"><value name=\"PIN\"><shadow type=\"math_number\"><field name=\"NUM\">21</field></shadow><block type=\"variables_get\" id=\"t/DyZ6EXi(*HgJ7gJ89+\"><field name=\"VAR\" id=\"0nUY#oAsrXQPW0x*KcX^\">hold</field></block></value><value name=\"VALUE\"><shadow type=\"math_number\" id=\"LU(rU|y)d+YdFAt(/^6$\"><field name=\"NUM\">0</field></shadow></value></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block><block type=\"procedures_defnoreturn\" id=\"^tKk}h/K2eA-VXaD,JKB\" x=\"490\" y=\"-50\"><mutation><arg name=\"seconds\" varid=\"O|19Xu=HUI:^K`J,yrUJ\"></arg></mutation><field name=\"NAME\">setTimer</field><comment pinned=\"false\" h=\"80\" w=\"160\">Describe this function...</comment><statement name=\"STACK\"><block type=\"iic_write_mem_list\" id=\"orMP/|39jhm[}aO+aXuV\"><field name=\"IIC\">i2c0</field><value name=\"REG\"><shadow type=\"math_number\" id=\"igA`5zzX+V(C?{laK/s^\"><field name=\"NUM\">0x0F</field></shadow></value><value name=\"DATA\"><block type=\"lists_create_with\" id=\"*Gsx(Se%_B,,EGK!$?W=\"><mutation items=\"1\"></mutation><value name=\"ADD0\"><block type=\"variables_get\" id=\"*y[|44LB%tDJb,a3e;#u\"><field name=\"VAR\" id=\"O|19Xu=HUI:^K`J,yrUJ\">seconds</field></block></value></block></value><next><block type=\"iic_write_mem_list\" id=\"W5-XfrX.z$F]U=58T$WK\"><field name=\"IIC\">i2c0</field><value name=\"REG\"><shadow type=\"math_number\" id=\"=}QmJwW9]8(KoQ{0b$y?\"><field name=\"NUM\">0x0E</field></shadow></value><value name=\"DATA\"><block type=\"lists_create_with\" id=\"AkKX]+J,+PTYH(@L}*Lh\"><mutation items=\"1\"></mutation><value name=\"ADD0\"><block type=\"math_number\" id=\"qq[3wSkgZ/w$Gy^Y|J!h\"><field name=\"NUM\">0x82</field></block></value></block></value><next><block type=\"iic_write_mem_list\" id=\"BncX],`Q3I|XCMMZ0]5W\"><field name=\"IIC\">i2c0</field><value name=\"REG\"><shadow type=\"math_number\" id=\"oI;{70zyE:qVKPFv[4/4\"><field name=\"NUM\">0x01</field></shadow></value><value name=\"DATA\"><block type=\"lists_create_with\" id=\"0NHA7*8f?QP;4D*0K7Ym\"><mutation items=\"1\"></mutation><value name=\"ADD0\"><block type=\"math_number\" id=\"z5z%$ehC![}ErWl5)HL?\"><field name=\"NUM\">0x01</field></block></value></block></value></block></next></block></next></block></statement></block>","Blockly.Remotes":[],"Blockly.RemotePlus":[{"id":"__title","blockId":"","createTime":1694411783578,"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":"4mmJ7KXkjHyG4mtIneO7mupLwS1HsD1m","topic":"","needShadow":false,"type":"title","x":0,"y":0}],"modules":["rgb","machine"],"cbIdList_":[],"eventCBIdList_":[],"apikey":"","uuid":"70323b8b-7738-4ab7-bb26-383b74797cd9"}
|