-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.m5f2
1 lines (1 loc) · 31.6 KB
/
main.m5f2
1
{"version":"V2.0","type":"atoms3","components":[{"name":"screen","type":"screen","layer":0,"screenId":"builtin","screenName":"","id":"__atoms3_screen","createTime":1691858832915,"x":0,"y":0,"width":280,"height":280,"backgroundColor":"#000","size":0,"isSelected":true},{"name":"label0","type":"label","layer":1,"screenId":"builtin","screenName":"","id":"orBWXzS4gs^JRKV4","createTime":1691859783398,"x":18,"y":40,"color":"#ffffff","backgroundColor":"#000000","text":"70%","engine":"gfx","font":"Widgets.FONTS.DejaVu40","rotation":0,"isSelected":false},{"name":"label1","type":"label","layer":1,"screenId":"builtin","screenName":"","id":"n`=HnmVg0bkcziii","createTime":1693079298244,"x":3,"y":104,"color":"#ffffff","backgroundColor":"#000000","text":"Resistance: 2000","engine":"gfx","font":"Widgets.FONTS.DejaVu12","rotation":0,"isSelected":false}],"resources":[{"software":["software_time"]},{"hardware":["adc","pin","hardware_button"]}],"units":[],"hats":[],"i2cs":[],"blockly":"<variables><variable id=\"if*xEWwAqS/SSy~-%ZH^\">current_resistance</variable><variable id=\"Xy1i1rJ}oiU^36]#?3tp\">humidity</variable><variable id=\"t%)EJNsd|`5NtJ5NSfha\">no_water</variable><variable id=\"oB$uU|PUT}qgYCI3ya!4\">flash_time</variable><variable id=\"`!#.pt`Zl9_B8_jthiy(\">start_pumping_time</variable><variable id=\"_uI;Y5[ozg`8dkm5adBe\">current_pumping_time</variable><variable id=\"F9$kE?(#ItHnH#HnlDvG\">resistance_list</variable><variable id=\"PFSf$14Cc%5H5xE(F.),\">i</variable><variable id=\"*7c/{I/#4k[8Rc)R+!{P\">protect_time</variable><variable id=\"7GH?iTAO%r^BiJt2HDY$\">flash_state</variable><variable id=\"!*9bx|$A`CR;,[@(~tL{\">resistance_sum</variable><variable id=\"{xTT1]0xYlqSE~dIR1*N\">min_humid_loop</variable><variable id=\"x^cR6.AV40.-RTG~z*M8\">k</variable><variable id=\")d!RS!kiz{dOiX*@4eXL\">max_resistance</variable><variable id=\"IPa,|lekVVXE5|=Xa5::\">resistance</variable><variable id=\"YanXd4hymAdyf*$-!ov*\">min_resistance</variable><variable id=\"jVvI?p!vUkItOFE]6VEB\">max_humid_loop</variable><variable id=\"Ff%Yv.qlh[c-g;]Ma6%d\">cashe_size</variable></variables><block type=\"basic_on_setup\" id=\"setup_block\" deletable=\"false\" x=\"-210\" y=\"-1790\"><mutation isBegin=\"true\"></mutation><field name=\"UPDATEOP\">true</field><statement name=\"FUNC\"><block type=\"system_m5_begin\" id=\"system_m5_begin\"><next><block type=\"adc_init_input\" id=\"f?H#klP[7@jrxLCE$MTZ\"><field name=\"ATTEN\">ADC.ATTN_11DB</field><value name=\"NAME\"><shadow type=\"math_number\" id=\"*#4Zjdpo%yCTK`E0Q)09\"><mutation max=\"Infinity\" min=\"0\" precision=\"1\"></mutation><field name=\"NUM\">1</field></shadow></value><next><block type=\"pin_init_input\" id=\"5PS8OE[B!:p#mliDTmwn\"><field name=\"MODE\">Pin.OUT</field><field name=\"PULL\">None</field><value name=\"NAME\"><shadow type=\"math_number\" id=\"w*yc_?v^!K!}ZjK`Rh_u\"><mutation max=\"Infinity\" min=\"0\" precision=\"1\"></mutation><field name=\"NUM\">2</field></shadow></value><next><block type=\"pin_set_value_input\" id=\"(yE()f{!aMl/W*W4~ZYN\"><field name=\"NAME\">2</field><value name=\"VALUE\"><shadow type=\"math_slider\" id=\"s3fv}.KE=]BuA16sPVs_\"><mutation max=\"1\" min=\"0\" step=\"1\" precision=\"1\"></mutation><field name=\"NUM\">0</field></shadow></value><next><block type=\"variables_set\" id=\"2tsQf.2kwkT!,$O+xFZI\"><field name=\"VAR\" id=\")d!RS!kiz{dOiX*@4eXL\">max_resistance</field><value name=\"VALUE\"><block type=\"math_number\" id=\"@UF%@I~.#,f{j!cklia;\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">2083</field></block></value><next><block type=\"variables_set\" id=\"Yw.F6]cIKl%)%kt.a@xa\"><field name=\"VAR\" id=\"YanXd4hymAdyf*$-!ov*\">min_resistance</field><value name=\"VALUE\"><block type=\"math_number\" id=\"w;`IKZ3X){YtBwpd{}g^\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">1615</field></block></value><next><block type=\"variables_set\" id=\"16B/f:y_#q55ZX0zrggG\"><field name=\"VAR\" id=\"Ff%Yv.qlh[c-g;]Ma6%d\">cashe_size</field><value name=\"VALUE\"><block type=\"math_number\" id=\"Sw7%m_9%BPXyg3.$fJON\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">2048</field></block></value><next><block type=\"variables_set\" id=\"WNe3(#Vq}N)G||t]~@oQ\"><field name=\"VAR\" id=\"{xTT1]0xYlqSE~dIR1*N\">min_humid_loop</field><value name=\"VALUE\"><block type=\"math_number\" id=\"C}@JnY=T5w%1+mKE,Yf5\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">50</field></block></value><next><block type=\"variables_set\" id=\".7Y9]te%OEr5;J94Pq/a\"><field name=\"VAR\" id=\"jVvI?p!vUkItOFE]6VEB\">max_humid_loop</field><value name=\"VALUE\"><block type=\"math_number\" id=\"W2Lll.NCn^a!h-mY9c^D\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">70</field></block></value><next><block type=\"variables_set\" id=\"Y=xi26J#j8,,!r,{8zRN\"><field name=\"VAR\" id=\"`!#.pt`Zl9_B8_jthiy(\">start_pumping_time</field><value name=\"VALUE\"><block type=\"math_number\" id=\"M8gNKLrBz$TcU8-l~iMe\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">0</field></block></value><next><block type=\"variables_set\" id=\"dYxvI3zzhqeq5]U24yRc\"><field name=\"VAR\" id=\"_uI;Y5[ozg`8dkm5adBe\">current_pumping_time</field><value name=\"VALUE\"><block type=\"math_number\" id=\"}vH|`f5Fp+.MYbbjR?cD\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">0</field></block></value><next><block type=\"variables_set\" id=\":g|,CKR7X{_1^K2mLna.\"><field name=\"VAR\" id=\"*7c/{I/#4k[8Rc)R+!{P\">protect_time</field><value name=\"VALUE\"><block type=\"math_number\" id=\"kYcjnkLVa/ODPgp!XYkl\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">300</field></block></value><next><block type=\"variables_set\" id=\"C!#ySu^H[(`R]!3k_9P8\"><field name=\"VAR\" id=\"F9$kE?(#ItHnH#HnlDvG\">resistance_list</field><value name=\"VALUE\"><block type=\"lists_repeat\" id=\"x|QZ*#MUe*)0$kA83Uq4\"><value name=\"ITEM\"><block type=\"variables_get\" id=\"|l@W0.f]bZG$3g#?rDtV\"><field name=\"VAR\" id=\"YanXd4hymAdyf*$-!ov*\">min_resistance</field></block></value><value name=\"NUM\"><shadow type=\"math_number\" id=\";5w}k4t/V3W?~9k-rR!n\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">128</field></shadow><block type=\"variables_get\" id=\"(WJ!usaHQgWSeQbuXOiG\"><field name=\"VAR\" id=\"Ff%Yv.qlh[c-g;]Ma6%d\">cashe_size</field></block></value></block></value><next><block type=\"variables_set\" id=\"QgvjC~2lt;LiH:R*kcq@\"><field name=\"VAR\" id=\"PFSf$14Cc%5H5xE(F.),\">i</field><value name=\"VALUE\"><block type=\"math_number\" id=\"3;Z(-PSuNsI3t_%1u5R9\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">1</field></block></value><next><block type=\"variables_set\" id=\",dBjFkr;8^[K459WBE1p\"><field name=\"VAR\" id=\"t%)EJNsd|`5NtJ5NSfha\">no_water</field><value name=\"VALUE\"><block type=\"logic_boolean\" id=\"u/)D?xGk2x5L;l~za/m+\"><field name=\"BOOL\">FALSE</field></block></value><next><block type=\"variables_set\" id=\"5@#T?1V~sS1j%(K`1!Xf\"><field name=\"VAR\" id=\"7GH?iTAO%r^BiJt2HDY$\">flash_state</field><value name=\"VALUE\"><block type=\"logic_boolean\" id=\"JvJh2Ezpl^AOR/lQFpvc\"><field name=\"BOOL\">FALSE</field></block></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></statement></block><block type=\"basic_on_loop\" id=\"loop_block\" deletable=\"false\" x=\"610\" y=\"-1790\"><mutation isUpdate=\"true\"></mutation><field name=\"UPDATEOP\">true</field><statement name=\"FUNC\"><block type=\"system_m5_update\" id=\"system_m5_update\"><next><block type=\"procedures_callnoreturn\" id=\"mE1[PbDi)^I8W6.s:qvM\"><mutation name=\"Measure humidity\"></mutation><next><block type=\"procedures_callnoreturn\" id=\"V)%ji@a`LuwY4t/ct]_Q\"><mutation name=\"Update screen\"></mutation><next><block type=\"procedures_callnoreturn\" id=\"SFniQC1q-Py/zPFS53(E\"><mutation name=\"Run pump controller\"></mutation><next><block type=\"procedures_callnoreturn\" id=\"OokkqD=[X4P/#=(-S:Y.\"><mutation name=\"Detect no water\"></mutation></block></next></block></next></block></next></block></next></block></statement></block><block type=\"procedures_defnoreturn\" id=\"p_5-NJ;`[6o)*{n2-}T[\" x=\"610\" y=\"-1590\"><field name=\"NAME\">Measure humidity</field><comment pinned=\"false\" h=\"80\" w=\"160\">Describe this function...</comment><statement name=\"STACK\"><block type=\"procedures_callnoreturn\" id=\"9ZYGCwOhbv05{EfOX!8p\"><mutation name=\"Measure resistance\"></mutation><next><block type=\"variables_set\" id=\"TQyYW:f@s#nx;7r@36kO\"><field name=\"VAR\" id=\"Xy1i1rJ}oiU^36]#?3tp\">humidity</field><value name=\"VALUE\"><block type=\"math_arithmetic\" id=\"q:^Ccyr,DR_zfF0!K^M*\"><field name=\"OP\">MULTIPLY</field><value name=\"A\"><shadow type=\"math_number\" id=\"RjJDq8qLG6o8?r$=o-bP\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">1</field></shadow><block type=\"math_arithmetic\" id=\"N/f2$S`mOTneo+[SQskL\"><field name=\"OP\">DIVIDE</field><value name=\"A\"><shadow type=\"math_number\" id=\"6Sk^NcIV0o3%o-0o%KeZ\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">1</field></shadow><block type=\"math_arithmetic\" id=\"U.2mDv?yM|COQsKd)L=-\"><field name=\"OP\">MINUS</field><value name=\"A\"><shadow type=\"math_number\" id=\"IaCu,GRr;,`pShG,!+(F\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">1</field></shadow><block type=\"variables_get\" id=\"BYq#9^aD6l*P{PCKD#C}\"><field name=\"VAR\" id=\")d!RS!kiz{dOiX*@4eXL\">max_resistance</field></block></value><value name=\"B\"><shadow type=\"math_number\" id=\"A)T}=$e52{g}Z#$SPrOH\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">1</field></shadow><block type=\"variables_get\" id=\"WZLj.rYBU=O$ev++t@js\"><field name=\"VAR\" id=\"IPa,|lekVVXE5|=Xa5::\">resistance</field></block></value></block></value><value name=\"B\"><shadow type=\"math_number\" id=\"a|XwXiBCy}B)vZArJ!D|\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">1</field></shadow><block type=\"math_arithmetic\" id=\"Aa6vQvD2^%-2#u+fAv@7\"><field name=\"OP\">MINUS</field><value name=\"A\"><shadow type=\"math_number\" id=\";71:QvvlEjr4DAVi-)7c\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">1</field></shadow><block type=\"variables_get\" id=\"vW=|6o;B/SI{jA:[)$Ec\"><field name=\"VAR\" id=\")d!RS!kiz{dOiX*@4eXL\">max_resistance</field></block></value><value name=\"B\"><shadow type=\"math_number\" id=\"yL|!I.TozM;G]SK(PGXk\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">1</field></shadow><block type=\"variables_get\" id=\"imjk6W4mR6LJrj^0uZh|\"><field name=\"VAR\" id=\"YanXd4hymAdyf*$-!ov*\">min_resistance</field></block></value></block></value></block></value><value name=\"B\"><shadow type=\"math_number\" id=\"?k^tVfK:xeuB`M%L;#Ty\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">100</field></shadow></value></block></value></block></next></block></statement></block><block type=\"procedures_defnoreturn\" id=\"/7q)?gYXxxQ|k072iE]E\" x=\"610\" y=\"-1450\"><field name=\"NAME\">Run pump controller</field><comment pinned=\"false\" h=\"80\" w=\"160\">Describe this function...</comment><statement name=\"STACK\"><block type=\"controls_if\" id=\";Owdy})_Guc5Ked7xX.A\"><value name=\"IF0\"><block type=\"logic_operation\" id=\"FG,2dke;[^sWqZv!Q)M!\"><field name=\"OP\">AND</field><value name=\"A\"><block type=\"logic_operation\" id=\"!uLPm/91wP4aL2%eSQz:\"><field name=\"OP\">OR</field><value name=\"A\"><block type=\"logic_compare\" id=\"hzLMPqbZ0VW/{p%*FJAN\"><field name=\"OP\">LT</field><value name=\"A\"><block type=\"variables_get\" id=\"jJP+=3j/QdHGp#B.xcmK\"><field name=\"VAR\" id=\"Xy1i1rJ}oiU^36]#?3tp\">humidity</field></block></value><value name=\"B\"><block type=\"variables_get\" id=\"D/{/X)bLb+RveH%bCrNQ\"><field name=\"VAR\" id=\"{xTT1]0xYlqSE~dIR1*N\">min_humid_loop</field></block></value></block></value><value name=\"B\"><block type=\"button_is_holding\" id=\"kfPvmP,!ijO5E@C+5*$W\"><field name=\"NAME\">BtnA</field></block></value></block></value><value name=\"B\"><block type=\"logic_negate\" id=\"fXGLxs*p5-[AFy^vK[*X\"><value name=\"BOOL\"><block type=\"variables_get\" id=\"|hP*UAjd{oeV4ew]X:^5\"><field name=\"VAR\" id=\"t%)EJNsd|`5NtJ5NSfha\">no_water</field></block></value></block></value></block></value><statement name=\"DO0\"><block type=\"controls_ifelse\" id=\"VHe|v|dVA.YT/(6tw$6=\"><value name=\"IF0\"><block type=\"logic_compare\" id=\"?)$5e(+%asVp?4XUSR=a\"><field name=\"OP\">EQ</field><value name=\"A\"><block type=\"pin_get_value\" id=\"hIUxNQt{z@w|_MGU(!W:\"><field name=\"NAME\">2</field></block></value><value name=\"B\"><block type=\"math_number\" id=\"^ac#SD?!7,g*%NPc6BU-\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">0</field></block></value></block></value><statement name=\"DO0\"><block type=\"variables_set\" id=\"}Ocq/8hTQG!rPJu8r[^8\"><field name=\"VAR\" id=\"`!#.pt`Zl9_B8_jthiy(\">start_pumping_time</field><value name=\"VALUE\"><block type=\"time_get_system_time\" id=\"%PtL*#@*Mj*{wK;|)|d:\"></block></value><next><block type=\"variables_set\" id=\"2p@C(3NOKuodAV^(!k}4\"><field name=\"VAR\" id=\"_uI;Y5[ozg`8dkm5adBe\">current_pumping_time</field><value name=\"VALUE\"><block type=\"time_get_system_time\" id=\"m[+o|PDfRru2N2YcjSnb\"></block></value><next><block type=\"pin_set_value_input\" id=\"RR$~Y.[nyrTZz6sz6cFm\"><field name=\"NAME\">2</field><value name=\"VALUE\"><shadow type=\"math_slider\" id=\"V_vvC/,UqX!L4A.u57V!\"><mutation max=\"1\" min=\"0\" step=\"1\" precision=\"1\"></mutation><field name=\"NUM\">1</field></shadow></value></block></next></block></next></block></statement><statement name=\"ELSE\"><block type=\"variables_set\" id=\"}s..K}}9X,UWf]T`n2Q$\"><field name=\"VAR\" id=\"_uI;Y5[ozg`8dkm5adBe\">current_pumping_time</field><value name=\"VALUE\"><block type=\"time_get_system_time\" id=\"xvV4[eK#O(wy/y`(Nw2X\"></block></value></block></statement></block></statement><next><block type=\"controls_if\" id=\"@)75J7/cD9p(_j2y{!)i\"><value name=\"IF0\"><block type=\"logic_operation\" id=\"i82to+%?`Pty,T:nv2Dc\"><field name=\"OP\">OR</field><value name=\"A\"><block type=\"logic_operation\" id=\"sS2qxD-?)`6J]v5AIfxW\"><field name=\"OP\">AND</field><value name=\"A\"><block type=\"logic_compare\" id=\",)601X0gB!3g2c7U1RF6\"><field name=\"OP\">GT</field><value name=\"A\"><block type=\"variables_get\" id=\"Mm[s9/Rr!bFi(mZz$w}G\"><field name=\"VAR\" id=\"Xy1i1rJ}oiU^36]#?3tp\">humidity</field></block></value><value name=\"B\"><block type=\"variables_get\" id=\"uX:mt#+w^rvvE8*|]y[j\"><field name=\"VAR\" id=\"jVvI?p!vUkItOFE]6VEB\">max_humid_loop</field></block></value></block></value><value name=\"B\"><block type=\"logic_negate\" id=\"Dl#wn%K)x$YnvCrqUMVp\"><value name=\"BOOL\"><block type=\"button_get_status\" id=\"O`7~+7ZQO+C?BHXNh-9;\"><field name=\"NAME\">BtnA</field><field name=\"OPTION\">isHolding</field></block></value></block></value></block></value><value name=\"B\"><block type=\"variables_get\" id=\"sHnpN5V97{=b[gwE+t[Y\"><field name=\"VAR\" id=\"t%)EJNsd|`5NtJ5NSfha\">no_water</field></block></value></block></value><statement name=\"DO0\"><block type=\"variables_set\" id=\"$C-COXsvZ-,v:MkeT,GI\"><field name=\"VAR\" id=\"`!#.pt`Zl9_B8_jthiy(\">start_pumping_time</field><value name=\"VALUE\"><block type=\"math_number\" id=\"Dv_Y-DT^H,{OvrY2ur6:\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">0</field></block></value><next><block type=\"variables_set\" id=\"A:5{ro$ao4[]t1+|F{hH\"><field name=\"VAR\" id=\"_uI;Y5[ozg`8dkm5adBe\">current_pumping_time</field><value name=\"VALUE\"><block type=\"math_number\" id=\"5pg{:xbEJ|VXE9{9saDv\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">0</field></block></value><next><block type=\"pin_set_value_input\" id=\"3!iztmnqo_I1(${.VmpH\"><field name=\"NAME\">2</field><value name=\"VALUE\"><shadow type=\"math_slider\" id=\"RaQ8Y#5AVZWfbiA)2325\"><mutation max=\"1\" min=\"0\" step=\"1\" precision=\"1\"></mutation><field name=\"NUM\">0</field></shadow></value></block></next></block></next></block></statement></block></next></block></statement></block><block type=\"procedures_defnoreturn\" id=\"DwRmB]Mb(~p+3+_{+BS9\" x=\"-210\" y=\"-1250\"><field name=\"NAME\">Measure resistance</field><comment pinned=\"false\" h=\"80\" w=\"160\">Describe this function...</comment><statement name=\"STACK\"><block type=\"variables_set\" id=\"k(nzX-1ci5*(F6J-A|xp\"><field name=\"VAR\" id=\"if*xEWwAqS/SSy~-%ZH^\">current_resistance</field><value name=\"VALUE\"><block type=\"adc_read\" id=\":2{VXWw;J|+J]G:GrB9h\"><field name=\"NAME\">1</field></block></value><next><block type=\"lists_setIndex\" id=\"9oNWj$%L^UslW=%tbxpn\"><mutation at=\"true\"></mutation><field name=\"MODE\">SET</field><field name=\"WHERE\">FROM_START</field><value name=\"LIST\"><block type=\"variables_get\" id=\"ps@V81e3w-vgr*x1E9+n\"><field name=\"VAR\" id=\"F9$kE?(#ItHnH#HnlDvG\">resistance_list</field></block></value><value name=\"AT\"><block type=\"variables_get\" id=\"xv,2f*9c_kZTn*oQy3EU\"><field name=\"VAR\" id=\"PFSf$14Cc%5H5xE(F.),\">i</field></block></value><value name=\"TO\"><block type=\"variables_get\" id=\"l4y-Q*UVkv:}^+=[:,OP\"><field name=\"VAR\" id=\"if*xEWwAqS/SSy~-%ZH^\">current_resistance</field></block></value><next><block type=\"controls_ifelse\" id=\";2_c=Z5c6X@D};KJs#E,\"><value name=\"IF0\"><block type=\"logic_compare\" id=\"SU@/7)YUZFAtQcQ@fRvD\"><field name=\"OP\">LT</field><value name=\"A\"><block type=\"variables_get\" id=\"4d7V^NRx5;!]sdfL9T+x\"><field name=\"VAR\" id=\"PFSf$14Cc%5H5xE(F.),\">i</field></block></value><value name=\"B\"><block type=\"lists_length\" id=\"PiZ8gojlrr{tQqFDb1(h\"><value name=\"VALUE\"><block type=\"variables_get\" id=\"N+b?41`$|:,rMQ,In76s\"><field name=\"VAR\" id=\"F9$kE?(#ItHnH#HnlDvG\">resistance_list</field></block></value></block></value></block></value><statement name=\"DO0\"><block type=\"variables_set\" id=\"S9/z9iQ,uE@U8E^?F5,N\"><field name=\"VAR\" id=\"PFSf$14Cc%5H5xE(F.),\">i</field><value name=\"VALUE\"><block type=\"math_arithmetic\" id=\";.h5[4,t;v[wo;O^=[QF\"><field name=\"OP\">ADD</field><value name=\"A\"><shadow type=\"math_number\" id=\":?o$y-M-v9Y5_:/muI3s\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">1</field></shadow><block type=\"variables_get\" id=\"[..Zs6K+R`.yYp4-=PIW\"><field name=\"VAR\" id=\"PFSf$14Cc%5H5xE(F.),\">i</field></block></value><value name=\"B\"><shadow type=\"math_number\" id=\"dEE,(+a:|AH7fDq,CSEu\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">1</field></shadow></value></block></value></block></statement><statement name=\"ELSE\"><block type=\"variables_set\" id=\"CyCI*wvo0(adYt/M=cj6\"><field name=\"VAR\" id=\"PFSf$14Cc%5H5xE(F.),\">i</field><value name=\"VALUE\"><block type=\"math_number\" id=\",U|9?!ii0p=|D/)L1fU|\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">1</field></block></value></block></statement><next><block type=\"variables_set\" id=\"`#]Iy5,7fsOk+$-txd9r\"><field name=\"VAR\" id=\"!*9bx|$A`CR;,[@(~tL{\">resistance_sum</field><value name=\"VALUE\"><block type=\"math_number\" id=\"+@|cS#%twU:X3NG/KiD-\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">0</field></block></value><next><block type=\"controls_forEach\" id=\",(+=4kozE)%(:JC/fmw0\"><field name=\"VAR\" id=\"x^cR6.AV40.-RTG~z*M8\">k</field><value name=\"LIST\"><block type=\"variables_get\" id=\"6%wEsFcXCiY#H)dgj}+u\"><field name=\"VAR\" id=\"F9$kE?(#ItHnH#HnlDvG\">resistance_list</field></block></value><statement name=\"DO\"><block type=\"variables_set\" id=\"Z||;*Yo,Yo;Fr+rRhL@/\"><field name=\"VAR\" id=\"!*9bx|$A`CR;,[@(~tL{\">resistance_sum</field><value name=\"VALUE\"><block type=\"math_arithmetic\" id=\"%VrTq4+Mm[qUuFaz!Ma5\"><field name=\"OP\">ADD</field><value name=\"A\"><shadow type=\"math_number\" id=\"]~HC|G-(|ubA{8n):e`h\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">1</field></shadow><block type=\"variables_get\" id=\"t{TE?q3v,R@3SJ!l{D8}\"><field name=\"VAR\" id=\"!*9bx|$A`CR;,[@(~tL{\">resistance_sum</field></block></value><value name=\"B\"><shadow type=\"math_number\" id=\"FzGkDxp23q@b(;4l{a]V\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">1</field></shadow><block type=\"variables_get\" id=\"C!aHZVjO;`JxpvdJ@mQ,\"><field name=\"VAR\" id=\"x^cR6.AV40.-RTG~z*M8\">k</field></block></value></block></value></block></statement><next><block type=\"variables_set\" id=\"hd|.DDK9wGo@A:99Cfa.\"><field name=\"VAR\" id=\"IPa,|lekVVXE5|=Xa5::\">resistance</field><value name=\"VALUE\"><block type=\"math_arithmetic\" id=\"N8`Cu:[jy/=z{l0xglZp\"><field name=\"OP\">DIVIDE</field><value name=\"A\"><shadow type=\"math_number\" id=\"lS/3yq*QaHmxB~UQ0Y_E\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">1</field></shadow><block type=\"variables_get\" id=\"y`8a@-_.Va%]zTr(f!S-\"><field name=\"VAR\" id=\"!*9bx|$A`CR;,[@(~tL{\">resistance_sum</field></block></value><value name=\"B\"><shadow type=\"math_number\" id=\"qaX-k~jOJm$bxkDXM+W7\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">1</field></shadow><block type=\"lists_length\" id=\"14BhfE1n7ZG|~bH)qt44\"><value name=\"VALUE\"><block type=\"variables_get\" id=\"3QDP5v@9FdtAUz9k1_W8\"><field name=\"VAR\" id=\"F9$kE?(#ItHnH#HnlDvG\">resistance_list</field></block></value></block></value></block></value></block></next></block></next></block></next></block></next></block></next></block></statement></block><block type=\"procedures_defnoreturn\" id=\",jH@BZ+BF/3+X]2NVnJI\" x=\"610\" y=\"-990\"><field name=\"NAME\">Detect no water</field><comment pinned=\"false\" h=\"80\" w=\"160\">Describe this function...</comment><statement name=\"STACK\"><block type=\"controls_if\" id=\",fzntH437|24W@4]bpg/\"><value name=\"IF0\"><block type=\"logic_compare\" id=\"Z^SVKGXq*](8p^#:.;C`\"><field name=\"OP\">GT</field><value name=\"A\"><block type=\"math_convent_int\" id=\"1GosewfO}qu@UdUc_W5q\"><value name=\"VALUE\"><block type=\"math_arithmetic\" id=\".*:Ggsv,{6W:yGgZuM,W\"><field name=\"OP\">MINUS</field><value name=\"A\"><shadow type=\"math_number\" id=\"lx[umauC^sXYxL|z2{2t\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">1</field></shadow><block type=\"variables_get\" id=\"6X45%F6-z42B#%5q|qEH\"><field name=\"VAR\" id=\"_uI;Y5[ozg`8dkm5adBe\">current_pumping_time</field></block></value><value name=\"B\"><shadow type=\"math_number\" id=\"1TLts`.]:4R3dI3hA29y\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">1</field></shadow><block type=\"variables_get\" id=\"VIt!UcL2Y*t=tSBAFF($\"><field name=\"VAR\" id=\"`!#.pt`Zl9_B8_jthiy(\">start_pumping_time</field></block></value></block></value></block></value><value name=\"B\"><block type=\"variables_get\" id=\"uXSsB_LPn#%GQ!pg2%MP\"><field name=\"VAR\" id=\"*7c/{I/#4k[8Rc)R+!{P\">protect_time</field></block></value></block></value><statement name=\"DO0\"><block type=\"variables_set\" id=\"XvpnSR{_ca/]s`/x-6,=\"><field name=\"VAR\" id=\"t%)EJNsd|`5NtJ5NSfha\">no_water</field><value name=\"VALUE\"><block type=\"logic_boolean\" id=\"7eC0?b.u{T#L`P=[Dn+H\"><field name=\"BOOL\">TRUE</field></block></value></block></statement><next><block type=\"controls_if\" id=\"oBGn=to{~F~})a7dB=JU\"><value name=\"IF0\"><block type=\"button_was_double_clicked\" id=\"1xiwI-~ytHI:pu^Qd5`m\"><field name=\"NAME\">BtnA</field></block></value><statement name=\"DO0\"><block type=\"variables_set\" id=\"Lx3@J@jv,1$a1iCwJFY@\"><field name=\"VAR\" id=\"t%)EJNsd|`5NtJ5NSfha\">no_water</field><value name=\"VALUE\"><block type=\"logic_boolean\" id=\",5iq_l}YHB8#{zjN(*-2\"><field name=\"BOOL\">FALSE</field></block></value></block></statement></block></next></block></statement></block><block type=\"procedures_defnoreturn\" id=\"JEA7d~Lh8#yz)yoo9=*s\" x=\"-210\" y=\"-870\"><field name=\"NAME\">Update screen</field><comment pinned=\"false\" h=\"80\" w=\"160\">Describe this function...</comment><statement name=\"STACK\"><block type=\"controls_ifelse\" id=\"h6;]LDgie_OT[FdZyFP_\"><value name=\"IF0\"><block type=\"variables_get\" id=\"|9!C_Eh$AE7_jJyzjkLO\"><field name=\"VAR\" id=\"t%)EJNsd|`5NtJ5NSfha\">no_water</field></block></value><statement name=\"DO0\"><block type=\"label_set_font\" id=\"gQq8wMInr@,c4jOb/I$U\"><field name=\"NAME\">label0</field><field name=\"FONT\">Widgets.FONTS.DejaVu24</field><next><block type=\"label_set_position\" id=\"q/_3mkfX{aayg%)fUV9s\"><field name=\"NAME\">label0</field><value name=\"X\"><shadow type=\"math_number\" id=\"ad^m4zJ8p*w5GMg+zGu*\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">8</field></shadow></value><value name=\"Y\"><shadow type=\"math_number\" id=\"xJu99%jIv1=zwb=;Z7Qx\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">50</field></shadow></value><next><block type=\"label_set_color_multiple\" id=\"}6p``@J1].4cK.rA6Gx!\"><field name=\"NAME\">label0</field><value name=\"COLOR\"><block type=\"color_rgb_palette\" id=\"T`_wSaJ5bN.|+CBIw/TP\"><mutation mode=\"palette\"></mutation><field name=\"MODE\">palette</field><field name=\"COLOR\">#ff0000</field></block></value><value name=\"BG_COLOR\"><block type=\"color_rgb_palette\" id=\"PgfMi3Kv#s_6baiU?CX5\"><mutation mode=\"palette\"></mutation><field name=\"MODE\">palette</field><field name=\"COLOR\">#000000</field></block></value><next><block type=\"label_set_text\" id=\".Dl^H1x%e;}6P(S!O+}_\"><field name=\"NAME\">label0</field><value name=\"TEXT\"><shadow type=\"text\" id=\";Ex{w[uSr+(nx3cKEr%S\"><field name=\"TEXT\">No water</field></shadow></value><next><block type=\"procedures_callnoreturn\" id=\"F33HEb)/snBEi+Hc0n7R\"><mutation name=\"Flasher\"></mutation><next><block type=\"controls_ifelse\" id=\"5T{Mqak^}82]dF*7QbUk\"><value name=\"IF0\"><block type=\"variables_get\" id=\"!qV~M)jpp3mYt+PPhV(B\"><field name=\"VAR\" id=\"7GH?iTAO%r^BiJt2HDY$\">flash_state</field></block></value><statement name=\"DO0\"><block type=\"label_set_visible\" id=\"4?a=(B9OMIiSJgq+o;gS\"><field name=\"NAME\">label0</field><field name=\"VISIBLE\">True</field></block></statement><statement name=\"ELSE\"><block type=\"label_set_visible\" id=\"HV.tz6]?ldq2g+TM9ZU-\"><field name=\"NAME\">label0</field><field name=\"VISIBLE\">False</field></block></statement><next><block type=\"label_set_visible\" id=\"seTGx97SyejinrTM?dpz\"><field name=\"NAME\">label1</field><field name=\"VISIBLE\">False</field></block></next></block></next></block></next></block></next></block></next></block></next></block></statement><statement name=\"ELSE\"><block type=\"label_set_font\" id=\"GuVNGi5F~O?|-Pq,^|_`\"><field name=\"NAME\">label0</field><field name=\"FONT\">Widgets.FONTS.DejaVu40</field><next><block type=\"label_set_position\" id=\"g|+.~{C##{t{9;5RD^9z\"><field name=\"NAME\">label0</field><value name=\"X\"><shadow type=\"math_number\" id=\"!Q}=ZpHNnayGwOQyf(F;\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">18</field></shadow></value><value name=\"Y\"><shadow type=\"math_number\" id=\"TfN9ILY$we3EP(+Vl8jt\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">40</field></shadow></value><next><block type=\"label_set_color_multiple\" id=\"itvHqyWf^8LxDqNm!BO^\"><field name=\"NAME\">label0</field><value name=\"COLOR\"><block type=\"color_rgb_palette\" id=\"~%hR5c=vHbG;D6q|g!d@\"><mutation mode=\"palette\"></mutation><field name=\"MODE\">palette</field><field name=\"COLOR\">#ffffff</field></block></value><value name=\"BG_COLOR\"><block type=\"color_rgb_palette\" id=\"vjo;qkTUCS}?LAqN+h=k\"><mutation mode=\"palette\"></mutation><field name=\"MODE\">palette</field><field name=\"COLOR\">#000000</field></block></value><next><block type=\"label_set_text\" id=\"z~MjI=9Oh+)0vVL$wmkL\"><field name=\"NAME\">label0</field><value name=\"TEXT\"><shadow type=\"text\" id=\"cXdf8pO5tER}K![L9p,F\"><field name=\"TEXT\">Label</field></shadow><block type=\"text_add_str\" id=\"q4jKV)n69h_!iD|o7-:b\"><value name=\"VALUE1\"><shadow type=\"text\" id=\"1CoY5YRpF%Lx70+OVDN2\"><field name=\"TEXT\">hello M5</field></shadow><block type=\"math_round\" id=\".mp|2~^?g@8eUz:~A3)O\"><field name=\"OP\">ROUND</field><value name=\"NUM\"><shadow type=\"math_number\" id=\"H@=yZ8p3X](o1TTVg00R\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">3.1</field></shadow><block type=\"variables_get\" id=\"NGURsnD/sChdSouG/m!j\"><field name=\"VAR\" id=\"Xy1i1rJ}oiU^36]#?3tp\">humidity</field></block></value></block></value><value name=\"VALUE2\"><block type=\"text\" id=\"P!IUZIbm4f;_jA03xhNq\"><field name=\"TEXT\">%</field></block></value></block></value><next><block type=\"label_set_visible\" id=\"L9t0*Y2Mp_CrbSmznx#:\"><field name=\"NAME\">label1</field><field name=\"VISIBLE\">True</field><next><block type=\"label_set_text\" id=\"7B:6x%qP#~w/|#je?KnV\"><field name=\"NAME\">label1</field><value name=\"TEXT\"><shadow type=\"text\" id=\"yx#cItf5d~:L)W4z,Ap#\"><field name=\"TEXT\">Label</field></shadow><block type=\"text_add_str\" id=\"QAxGKU|A1NI64v))k-4C\"><value name=\"VALUE1\"><shadow type=\"text\" id=\"O2H!zVS59D8Rn^CGvcbG\"><field name=\"TEXT\">Resistance: </field></shadow></value><value name=\"VALUE2\"><block type=\"math_round\" id=\"D|y2-j]{sm/Js.7c7Qw!\"><field name=\"OP\">ROUND</field><value name=\"NUM\"><shadow type=\"math_number\" id=\"#9.yzttx_x`xN9(4;]%w\"><mutation max=\"Infinity\" min=\"-Infinity\" precision=\"0\"></mutation><field name=\"NUM\">3.1</field></shadow><block type=\"variables_get\" id=\"s?L%Z6A*/*?=%d]JuYQA\"><field name=\"VAR\" id=\"IPa,|lekVVXE5|=Xa5::\">resistance</field></block></value></block></value></block></value></block></next></block></next></block></next></block></next></block></next></block></statement></block></statement></block><block type=\"procedures_defnoreturn\" id=\"f1D4u(eNQO~Qde454T|%\" x=\"610\" y=\"-790\"><field name=\"NAME\">Flasher</field><comment pinned=\"false\" h=\"80\" w=\"160\">Describe this function...</comment><statement name=\"STACK\"><block type=\"controls_if\" id=\"-CwU)?~uA;=UA/CldI!_\"><value name=\"IF0\"><block type=\"logic_compare\" id=\"eEJ;QYtU_S]JPM4NL|uJ\"><field name=\"OP\">NEQ</field><value name=\"A\"><block type=\"variables_get\" id=\"aPv9k-5CDD!rn^2Ig:g`\"><field name=\"VAR\" id=\"oB$uU|PUT}qgYCI3ya!4\">flash_time</field></block></value><value name=\"B\"><block type=\"time_get_system_time\" id=\"1su/N3n_|{0!2DL:^y/L\"></block></value></block></value><statement name=\"DO0\"><block type=\"variables_set\" id=\"S/mS,wn1u73mSXkwU3LH\"><field name=\"VAR\" id=\"oB$uU|PUT}qgYCI3ya!4\">flash_time</field><value name=\"VALUE\"><block type=\"time_get_system_time\" id=\"i!.Odm9OC5I*ywLtn*8`\"></block></value><next><block type=\"variables_set\" id=\"gtp_Mo??Y`Nr,oIr^IJP\"><field name=\"VAR\" id=\"7GH?iTAO%r^BiJt2HDY$\">flash_state</field><value name=\"VALUE\"><block type=\"logic_negate\" id=\"=@Ut-8:itwv*=87N#6r1\"><value name=\"BOOL\"><block type=\"variables_get\" id=\"O!/Mrjq9X0u@yI3{ji^[\"><field name=\"VAR\" id=\"7GH?iTAO%r^BiJt2HDY$\">flash_state</field></block></value></block></value></block></next></block></statement></block></statement></block>","screen":[{"simulationName":"Built-in","type":"builtin","width":128,"height":128,"scale":1.3,"screenName":"","blockId":"","id":"builtin","createTime":1691858832911}]}