-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.blocks
1 lines (1 loc) · 18.7 KB
/
main.blocks
1
<xml xmlns="https://developers.google.com/blockly/xml"><variables><variable id="xXX8%xBw3]:80~bi`A[U">y</variable><variable id="HOjl5XK3Zt7j3s?ousz#">oldTemp</variable><variable id="]Yq@/W%Auw*d+Y|pv,)O">currentTemp</variable></variables><block type="function_definition" id="V8wM)G_o]S5=s[g)X6Ag" x="753" y="0"><mutation name="ShowSmallNumber" functionid="!oEK2]9=Wnp5lGKy|k[t"><arg name="x" id="xD77Hb`WT09$SWoX`b*|" type="number"/></mutation><field name="function_name">ShowSmallNumber</field><statement name="STACK"><block type="variables_set" id="K^`t6Z8N05ey.?K-b]/M"><field name="VAR" id="xXX8%xBw3]:80~bi`A[U">y</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="math_modulo" id="r-P7Sn:f83;g=QgR,C]h"><value name="DIVIDEND"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="argument_reporter_number" id="RefXeRWDTpETcFwpK3r{"><field name="VALUE">x</field></block></value><value name="DIVISOR"><shadow type="math_number" id="+](dxuW*Q:phvx6M[*h2"><field name="NUM">10</field></shadow></value></block></value><next><block type="controls_if" id="J]|AuTWg44mARI2DPhEA"><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="u~|)v9Yvdd)E~n{i$Yc7"><field name="OP">EQ</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="HV7o5$f9MCg5`~9l^Q=x"><field name="VAR" id="xXX8%xBw3]:80~bi`A[U">y</field></block></value><value name="B"><shadow type="math_number" id="`z|fCC!U~QJ40xNba(vw"><field name="NUM">0</field></shadow></value></block></value><statement name="DO0"><block type="device_show_leds" id="lH7~|S,rWzIw*4zwBYe*"><field name="LEDS">` . . # # # . . # . # . . # . # . . # . # . . # # # `</field></block></statement><next><block type="controls_if" id="I:ox;Av+Rnyp2ZWW]7G#"><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="S3J~l~v^4pP8fRPpk~Ob"><field name="OP">EQ</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="nD;OnuiMGN$f+/16ORbX"><field name="VAR" id="xXX8%xBw3]:80~bi`A[U">y</field></block></value><value name="B"><shadow type="math_number" id="hwCZ.^CG},gJTYHWRJO6"><field name="NUM">1</field></shadow></value></block></value><statement name="DO0"><block type="device_show_leds" id="!xn-*^17v~pFKKSCV}t%"><field name="LEDS">` . . . . # . . . . # . . . . # . . . . # . . . . # `</field></block></statement><next><block type="controls_if" id="{6bU:fVjmy%6i.QM6F}7"><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id=")Uvsy-e-?pjIt.1EL@?D"><field name="OP">EQ</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="$_Bxf{GlJI8YT:;AAHO3"><field name="VAR" id="xXX8%xBw3]:80~bi`A[U">y</field></block></value><value name="B"><shadow type="math_number" id="Q+U*i^U7Zs-yF0c;qX=5"><field name="NUM">2</field></shadow></value></block></value><statement name="DO0"><block type="device_show_leds" id="@SD]*M1ng/e6B9rbNIuw"><field name="LEDS">` . . # # # . . . . # . . # # # . . # . . . . # # # `</field></block></statement><next><block type="controls_if" id="$Or`3Ah7zb{-_jc3sKm2"><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="T1wx/nM-Dhp1/pUVf(_c"><field name="OP">EQ</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="vkX~nbt!JsimnT^Qx+3F"><field name="VAR" id="xXX8%xBw3]:80~bi`A[U">y</field></block></value><value name="B"><shadow type="math_number" id="KFvMG6;]$KCsumdT*P2#"><field name="NUM">3</field></shadow></value></block></value><statement name="DO0"><block type="device_show_leds" id="*Ma-y/v~Z5q]yQgmLb@U"><field name="LEDS">` . . # # # . . . . # . . # # # . . . . # . . # # # `</field></block></statement><next><block type="controls_if" id="1)x=hXS(XlZ]^fN)9i|r"><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="eomm1pNi}E5xU4U3}4xN"><field name="OP">EQ</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="]//;*#,}Svs6=OHo%/S9"><field name="VAR" id="xXX8%xBw3]:80~bi`A[U">y</field></block></value><value name="B"><shadow type="math_number" id=";[2sPjocq=fD4/;,WYp@"><field name="NUM">4</field></shadow></value></block></value><statement name="DO0"><block type="device_show_leds" id="GwqGEDzU_.Qx)D[h;/GC"><field name="LEDS">` . . # . # . . # . # . . # # # . . . . # . . . . # `</field></block></statement><next><block type="controls_if" id="PSW6dO_p,Rx$,Y:H%zzR"><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="9F%C|^FD$KnzSBD7[bo-"><field name="OP">EQ</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id=":8;y0r[6bw^B{~6(1_aO"><field name="VAR" id="xXX8%xBw3]:80~bi`A[U">y</field></block></value><value name="B"><shadow type="math_number" id="KsWTx`Lnu^4Id^R7c!xp"><field name="NUM">5</field></shadow></value></block></value><statement name="DO0"><block type="device_show_leds" id="2WYa[F7n+`cliNT=DV6F"><field name="LEDS">` . . # # # . . # . . . . # # # . . . . # . . # # # `</field></block></statement><next><block type="controls_if" id="f7*?wEiXq%3.JzDwH2W?"><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id=";.muS=+-Zuh1lE$YwvhT"><field name="OP">EQ</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="??e?{N%?DoUohY:L)qCQ"><field name="VAR" id="xXX8%xBw3]:80~bi`A[U">y</field></block></value><value name="B"><shadow type="math_number" id="dS:uOoKVQk91,3?7M((h"><field name="NUM">6</field></shadow></value></block></value><statement name="DO0"><block type="device_show_leds" id="(6[uijzA%`:LGksy{rdT"><field name="LEDS">` . . # # # . . # . . . . # # # . . # . # . . # # # `</field></block></statement><next><block type="controls_if" id="fytQcUT3|=n8ywJ!G1Vj"><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="WMIadK}%NU$Xm1fCUi1j"><field name="OP">EQ</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="`u3#V=-ZBsG|VP{Jm91d"><field name="VAR" id="xXX8%xBw3]:80~bi`A[U">y</field></block></value><value name="B"><shadow type="math_number" id="b={UzDI5!Xbe$$*IbL$o"><field name="NUM">7</field></shadow></value></block></value><statement name="DO0"><block type="device_show_leds" id="|sn3[?QztG*z2|uszt;V"><field name="LEDS">` . . # # # . . . . # . . . . # . . . . # . . . . # `</field></block></statement><next><block type="controls_if" id="Wlz/W,ohsKC/yEx,[|L:"><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="DI(Q[J!tGdPp6]!6TN[c"><field name="OP">EQ</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="[-Oa#=)q`)I2KU$Zr3`z"><field name="VAR" id="xXX8%xBw3]:80~bi`A[U">y</field></block></value><value name="B"><shadow type="math_number" id="EE$Y$S0JJ.Qf60DYF}bO"><field name="NUM">8</field></shadow></value></block></value><statement name="DO0"><block type="device_show_leds" id="[L-02{LM}iUOf.*C3s)o"><field name="LEDS">` . . # # # . . # . # . . # # # . . # . # . . # # # `</field></block></statement><next><block type="controls_if" id="D|!bA!a_Ga_MB1`8v!ch"><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="dhz()e^hMu}COpzJgs};"><field name="OP">EQ</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="Rf:|M3o{6odA9_S!+#Av"><field name="VAR" id="xXX8%xBw3]:80~bi`A[U">y</field></block></value><value name="B"><shadow type="math_number" id="=$0lg95r[JNGd5k|_}xa"><field name="NUM">9</field></shadow></value></block></value><statement name="DO0"><block type="device_show_leds" id="qT|d(U}lLUF]HKRzhWK7"><field name="LEDS">` . . # # # . . # . # . . # # # . . . . # . . # # # `</field></block></statement><next><block type="variables_set" id="t*1eF,i$N7?@t-;vNXzm"><field name="VAR" id="xXX8%xBw3]:80~bi`A[U">y</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="math_js_round" id="A,#GzIr$*ETd4p{Yv5|Z"><field name="OP">floor</field><value name="ARG0"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="math_arithmetic" id="0UjBdtU:-4|;C3,*fyWx"><field name="OP">DIVIDE</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="argument_reporter_number" id="EBM%41M[LH?b+AegKiKp"><field name="VALUE">x</field></block></value><value name="B"><shadow type="math_number" id="di70he]zYP{E=g*e9vy."><field name="NUM">10</field></shadow></value></block></value></block></value><next><block type="controls_if" id=")@c_)(4-(FsDPzci3W_h"><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="tk;$#o%%@m|vQal7!%^n"><field name="OP">GT</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="%=.+yn,iXu%(i~l7f#k4"><field name="VAR" id="xXX8%xBw3]:80~bi`A[U">y</field></block></value><value name="B"><shadow type="math_number" id="3f{NPYE{w}^w%.ko`uLj"><field name="NUM">0</field></shadow></value></block></value><statement name="DO0"><block type="device_plot" id="jMk)Yls,iM_i.DLe__(E"><value name="x"><shadow type="math_number_minmax" id="`H+uoB%%)9lI?,)1xk(A"><mutation min="0" max="4" label="X" precision="1"/><field name="SLIDER">0</field></shadow></value><value name="y"><shadow type="math_number_minmax" id="cfp37WZ*_#d{}P%c^16t"><mutation min="0" max="4" label="Y" precision="1"/><field name="SLIDER">4</field></shadow></value></block></statement><next><block type="controls_if" id="zXE|]}|Zz(8k3JV%w8Q,"><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="W,)bNNJ}h3nJFvYChg!%"><field name="OP">GT</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="6}bPg(X=#7[0t(VEp1ch"><field name="VAR" id="xXX8%xBw3]:80~bi`A[U">y</field></block></value><value name="B"><shadow type="math_number" id="8Mi;R35L)tjHH4q42t8x"><field name="NUM">1</field></shadow></value></block></value><statement name="DO0"><block type="device_plot" id="W%%aaOJh*:AxLvw)c`)1"><value name="x"><shadow type="math_number_minmax" id="]VDa-=7.b~`_1R#Dzh5Q"><mutation min="0" max="4" label="X" precision="1"/><field name="SLIDER">0</field></shadow></value><value name="y"><shadow type="math_number_minmax" id="s~5NEUazP$xbhOQe#Jz~"><mutation min="0" max="4" label="Y" precision="1"/><field name="SLIDER">3</field></shadow></value></block></statement><next><block type="controls_if" id="OOU^qE.zuc;$49mLN9|a"><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="d{R/v^/q(m}q+Z::B,|C"><field name="OP">GT</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="J2Z_uKw_S[3c~c?4P!{l"><field name="VAR" id="xXX8%xBw3]:80~bi`A[U">y</field></block></value><value name="B"><shadow type="math_number" id="?e`KN3iC9cV5DK;qk/ch"><field name="NUM">2</field></shadow></value></block></value><statement name="DO0"><block type="device_plot" id="k7}Ozw?hA!BEo.MKqVuD"><value name="x"><shadow type="math_number_minmax" id=")P7wn0_R[YFm[~e-.$;:"><mutation min="0" max="4" label="X" precision="1"/><field name="SLIDER">0</field></shadow></value><value name="y"><shadow type="math_number_minmax" id=",u:8O+j9a8U$(JBpX3kJ"><mutation min="0" max="4" label="Y" precision="1"/><field name="SLIDER">2</field></shadow></value></block></statement><next><block type="controls_if" id="#]pxJ{0x)V@Au6Pr#f[w"><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="I*]qCs~07J3KEe@oBIo_"><field name="OP">GT</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="UbJ$O8M|WU::}n(1?;`Z"><field name="VAR" id="xXX8%xBw3]:80~bi`A[U">y</field></block></value><value name="B"><shadow type="math_number" id="iNcU6wG`Vd+VK@Z+h.Fa"><field name="NUM">3</field></shadow></value></block></value><statement name="DO0"><block type="device_plot" id="*0e}gW^(}FblzE8[/@jy"><value name="x"><shadow type="math_number_minmax" id="]le+Cv7DDw.!4sW{%S!."><mutation min="0" max="4" label="X" precision="1"/><field name="SLIDER">0</field></shadow></value><value name="y"><shadow type="math_number_minmax" id="Z?-N-vv?T1hbYwf+a)eF"><mutation min="0" max="4" label="Y" precision="1"/><field name="SLIDER">1</field></shadow></value></block></statement><next><block type="controls_if" id="(kiq=0ow3SizHB{UD~x1"><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="w{}t#w-`1DvPsj}-[R%g"><field name="OP">GT</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="UOI6z/83+_w+bmB}HbIN"><field name="VAR" id="xXX8%xBw3]:80~bi`A[U">y</field></block></value><value name="B"><shadow type="math_number" id="vcj8=mceFc+CD{5;}MK|"><field name="NUM">4</field></shadow></value></block></value><statement name="DO0"><block type="device_plot" id="Q}TP8F7]#H,YP[iT68;D"><value name="x"><shadow type="math_number_minmax" id="-q:TI+(H(miR::y(F3Im"><mutation min="0" max="4" label="X" precision="1"/><field name="SLIDER">0</field></shadow></value><value name="y"><shadow type="math_number_minmax" id="!K[^GhL|QB.-1A??_lwe"><mutation min="0" max="4" label="Y" precision="1"/><field name="SLIDER">0</field></shadow></value></block></statement></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></statement></block><block type="pxt-on-start" id="kofOjf|O8~zBbEgI,$5+" x="0" y="67"/><block type="device_forever" id="{Dl1VsH9=}K[!5,s8[Kr" x="205" y="67"><statement name="HANDLER"><block type="variables_set" id="9gOsk!zepeSn5411{]}^"><field name="VAR" id="]Yq@/W%Auw*d+Y|pv,)O">currentTemp</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="device_temperature" id="Ss*~5p]2;TGD66cQ^YfE"/></value><next><block type="controls_if" id="B]I-06)|NfSCZgbC#!?V"><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="6W6_3To.hao5)t/}TbSO"><field name="OP">NEQ</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="hl:Ug4$QHt_e^t_onh$l"><field name="VAR" id="]Yq@/W%Auw*d+Y|pv,)O">currentTemp</field></block></value><value name="B"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="1j6z5hmN`;N;w5q#[WxK"><field name="VAR" id="HOjl5XK3Zt7j3s?ousz#">oldTemp</field></block></value></block></value><statement name="DO0"><block type="function_call" id="pL[_whODWZlq!QD(8Ih-"><mutation name="ShowSmallNumber" functionid="!oEK2]9=Wnp5lGKy|k[t"><arg name="x" id="xD77Hb`WT09$SWoX`b*|" type="number"/></mutation><value name="xD77Hb`WT09$SWoX`b*|"><shadow type="math_number" id="N+o7KD_!oiBmP@Y*bNE!"><field name="NUM">1</field></shadow><block type="variables_get" id="4V`]HI5sSH_7MRr@=g~g"><field name="VAR" id="]Yq@/W%Auw*d+Y|pv,)O">currentTemp</field></block></value><next><block type="controls_if" id="c:XK$mxTY0D@Zy7r9+|/"><mutation else="1"/><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="Ryc9f,.$T,W1!,#!(+kP"><field name="OP">GT</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="ar{b!00+3B.hSBpCVHNT"><field name="VAR" id="]Yq@/W%Auw*d+Y|pv,)O">currentTemp</field></block></value><value name="B"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="9BCaZi}7e0P~%7eP2{fa"><field name="VAR" id="HOjl5XK3Zt7j3s?ousz#">oldTemp</field></block></value></block></value><statement name="DO0"><block type="playMelody" id="[xPkY[fLQA~01|Ppd/HF"><value name="melody"><shadow type="melody_editor" id="z5EZgf;zRa0Fk{qq)b)C"><field name="melody">"C D E F G A B C5 "</field></shadow></value><value name="tempo"><shadow type="math_number_minmax" id="Z_C6xOQ!2QhmdN?xymTD"><mutation min="40" max="500" label="Tempo" precision="0"/><field name="SLIDER">500</field></shadow></value></block></statement><statement name="ELSE"><block type="playMelody" id="TW14nP`PpbZaRMgzRZaF"><value name="melody"><shadow type="melody_editor" id="LekQ*58Ip^VPC[Ee*g6#"><field name="melody">"C5 B A G F E D C "</field></shadow></value><value name="tempo"><shadow type="math_number_minmax" id="=;vjiD3TJWeiRU.{YZYX"><mutation min="40" max="500" label="Tempo" precision="0"/><field name="SLIDER">500</field></shadow></value></block></statement><next><block type="variables_set" id="!U[Q4Bh$PAA@|2z-UHG!"><field name="VAR" id="HOjl5XK3Zt7j3s?ousz#">oldTemp</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="#L@gS;ylM!Sc.W-CWIp+"><field name="VAR" id="]Yq@/W%Auw*d+Y|pv,)O">currentTemp</field></block></value></block></next></block></next></block></statement><next><block type="device_pause" id="Z1B36^`}7k-z?5,+fV/f"><value name="pause"><shadow type="timePicker" id="o.+g}fo;Y(qiFaal_+jX"><field name="ms">5000</field></shadow></value></block></next></block></next></block></statement></block><block type="variables_get" id="/W)Z4G,=!e(4zbtnJGv$" disabled="true" x="1003" y="178"><field name="VAR" id="xXX8%xBw3]:80~bi`A[U">y</field></block></xml>