-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.blocks
1 lines (1 loc) · 10.1 KB
/
main.blocks
1
<xml xmlns="https://developers.google.com/blockly/xml"><variables><variable id="Sv]M|D_kNU5C(/D89cNt">servo write pin</variable><variable id="S!*XyW`2(!u51,X9lFvG">Angle</variable><variable id="34zaD_U[%9*nSaXOH(B0">Direction</variable></variables><block type="device_forever" id="TMG,hbxoF|ImfASS1?US" x="484" y="-35"><statement name="HANDLER"><block type="device_while" id="ih]Je.nfW%_rNFC.eV%N"><value name="COND"><shadow type="logic_boolean"><field name="BOOL">FALSE</field></shadow><block type="logic_compare" id="/fPWludHN$@|6v[s7I^y"><field name="OP">EQ</field><value name="A"><shadow type="math_number" id="uf([3i^aU?CjW1RIfy4s"><field name="NUM">0</field></shadow></value><value name="B"><shadow type="math_number" id="5/Y~C94;LE!pyCfA1LZ;"><field name="NUM">0</field></shadow></value></block></value><statement name="DO"><block type="controls_if" id="QZE,a.nk:8Z:~gmR,|%."><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="O0,U.f/D`{x4rys{HP45"><field name="OP">GTE</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="device_temperature" id="(D]D?fQHL(Qu-?L?Wns`"/></value><value name="B"><shadow type="math_number" id="7L!Uma?2NB0X^@Hry)PP"><field name="NUM">30</field></shadow></value></block></value><statement name="DO0"><block type="playMelody" id="5`9%`}D#]F++0LBMij(*"><value name="melody"><shadow type="melody_editor" id="9%QO]plH@?aVdsGjM#aI"><field name="melody">"C5 B A G F E D C "</field></shadow></value><value name="tempo"><shadow type="math_number_minmax" id="k_|ZMv2PFFI^*hB2#fQR"><mutation min="40" max="500" label="Tempo" precision="0"/><field name="SLIDER">120</field></shadow></value><next><block type="device_set_digital_pin" id="mC3,jiw4#}a{8B$M~uZY"><field name="name">DigitalPin.P1</field><value name="value"><shadow type="math_number_minmax" id="H+b$px!fDVzp5wGEFoyg"><mutation min="0" max="1" label="Value" precision="0"/><field name="SLIDER">0</field></shadow></value><next><block type="device_set_digital_pin" id="SDKX#nKm)/3RGWFH=agA"><field name="name">DigitalPin.P2</field><value name="value"><shadow type="math_number_minmax" id=":v5^j55kB2Uhr3VWt-t3"><mutation min="0" max="1" label="Value" precision="0"/><field name="SLIDER">1</field></shadow></value><next><block type="device_show_number" id="6=K[%a7D6h_TL#=pr(/Y"><value name="number"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="device_temperature" id="ieKo$8fi~|9,5Pn5v]51"/></value><next><block type="device_print_message" id="[i(fhaQ#II[]]bhDHAS|"><value name="text"><shadow type="text" id="_~Oj-=Mb=/.z%IxIl{!J"><field name="TEXT">Fan will on</field></shadow></value><next><block type="device_while" id="TPa][a(ms|;9Qf_?}s1}"><value name="COND"><shadow type="logic_boolean"><field name="BOOL">FALSE</field></shadow><block type="logic_compare" id="BN!Ez#s:xzf$p%`G3w,*"><field name="OP">GTE</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="device_temperature" id="+]0^=.kkbx@(c4T[W,UP"/></value><value name="B"><shadow type="math_number" id="#S-nNsQR];~sO:9At4ZP"><field name="NUM">30</field></shadow></value></block></value><statement name="DO"><block type="servoservosetangle" id="2),=FEUG^LrfpRJW0];z"><field name="servo">servos.P0</field><value name="degrees"><shadow type="protractorPicker" id="v,9eX0Dm8mm|}_xiZkql"><field name="angle">180</field></shadow></value><next><block type="device_pause" id="t=),VR=t2^b/s|?+~s|="><value name="pause"><shadow type="timePicker" id="S1(C^x=NhaMU5%~WOo#R"><field name="ms">100</field></shadow></value><next><block type="servoservosetangle" id="B3d`e`1!p5H,d2[FA;y{"><field name="servo">servos.P0</field><value name="degrees"><shadow type="protractorPicker" id="M}6.{mo5+iiyBm{V1{x+"><field name="angle">0</field></shadow></value><next><block type="device_pause" id=")%[%Cg;NQR.VjKad*(*U"><value name="pause"><shadow type="timePicker" id="=[O,8SmJhh[)XXpXk8T6"><field name="ms">100</field></shadow></value><next><block type="servoservosetangle" id="84aIByeB/[+$^uDDZ5t3"><field name="servo">servos.P0</field><value name="degrees"><shadow type="protractorPicker" id="X7C=wX+W|hnR`o#J|dF`"><field name="angle">180</field></shadow></value><next><block type="device_pause" id="n6L:jetK}}0V=_DRbBoL"><value name="pause"><shadow type="timePicker" id="Ly:E`~86u+q-x@ga/3sD"><field name="ms">100</field></shadow></value><next><block type="servoservosetangle" id="N`IR)M$LT/wVvVt6YXsm"><field name="servo">servos.P0</field><value name="degrees"><shadow type="protractorPicker" id="d^$Es3mK3JzCwLti|aT5"><field name="angle">0</field></shadow></value><next><block type="device_pause" id="yRJHSkup.EwY+Kr5GdwT"><value name="pause"><shadow type="timePicker" id="8-]Hi!4^y1*P:c`cP%4D"><field name="ms">100</field></shadow></value></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></statement></block></next></block></next></block></next></block></next></block></next></block></statement><next><block type="controls_if" id="BFGTzX|/9D;75=NCg6M-"><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="!/Acc)Yi?VPLjd-)Vl~$"><field name="OP">LT</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="device_temperature" id="FtH4C7_LN*qo/oq0[1~."/></value><value name="B"><shadow type="math_number" id="tt|k=MXEqM+a!u(u+t5L"><field name="NUM">30</field></shadow></value></block></value><statement name="DO0"><block type="device_while" id="r4N$W.[=)2]#jx#jEB[k"><value name="COND"><shadow type="logic_boolean"><field name="BOOL">FALSE</field></shadow><block type="logic_compare" id="Zl%,EFCn|wRtn:}Q:ZhN"><field name="OP">LT</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="device_temperature" id="1ya/}E)@8cgFdO,G.@a="/></value><value name="B"><shadow type="math_number" id="MB23k[j;Ck7:)#T85~zb"><field name="NUM">30</field></shadow></value></block></value><statement name="DO"><block type="device_set_digital_pin" id="Kv~Pv]a/s}Q+ifKgdYgg"><field name="name">DigitalPin.P2</field><value name="value"><shadow type="math_number_minmax" id="f/yP7RN5|%M/4s5bwBp}"><mutation min="0" max="1" label="Value" precision="0"/><field name="SLIDER">0</field></shadow></value><next><block type="device_set_digital_pin" id="_NF??vu7B!@+C*k(B]Ib"><field name="name">DigitalPin.P1</field><value name="value"><shadow type="math_number_minmax" id="!mP[OoZb6qP.$PK]Ci~0"><mutation min="0" max="1" label="Value" precision="0"/><field name="SLIDER">1</field></shadow></value><next><block type="device_show_number" id="myjlzJn0Q9J15)YatAC["><value name="number"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="device_temperature" id="V?{Qw9FS`j]9.@HTvS{-"/></value><next><block type="device_print_message" id="%?%:,LWTFL%lQ$[/fau0"><value name="text"><shadow type="text" id="RCE[taPC$XhzHTE!vFNP"><field name="TEXT">Normal</field></shadow></value></block></next></block></next></block></next></block></statement></block></statement></block></next></block></statement></block></statement></block><block type="device_button_event" id="8SQX0EgVaNn_8VS*-5E?" x="0" y="0"><field name="NAME">Button.A</field><statement name="HANDLER"><block type="controls_if" id="zFLtx$A.@`/b=;g+.cAu"><mutation else="1"/><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="frcF}a?t-15K?};XB98M"><field name="OP">GTE</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="device_temperature" id="#YO/+%l27x8~t8t5EC4i"/></value><value name="B"><shadow type="math_number" id="`RO$2g/j5$C-2r-V:1Jq"><field name="NUM">30</field></shadow></value></block></value><statement name="DO0"><block type="device_set_digital_pin" id="vuq5WP/Z!ImIllA9)EJU"><field name="name">DigitalPin.P2</field><value name="value"><shadow type="math_number_minmax" id=")y%A@gO~2m(#Sy_sqA^b"><mutation min="0" max="1" label="Value" precision="0"/><field name="SLIDER">1</field></shadow></value></block></statement><statement name="ELSE"><block type="device_set_digital_pin" id="13-RC@^bkD3Q?8*wKLkr"><field name="name">DigitalPin.P1</field><value name="value"><shadow type="math_number_minmax" id="!W_E_o;X^wqOa*duZ0d!"><mutation min="0" max="1" label="Value" precision="0"/><field name="SLIDER">1</field></shadow></value></block></statement></block></statement></block><block type="device_button_event" id="$-NMt4d?V:skPwA[K2z@" x="-32" y="334"><field name="NAME">Button.B</field><statement name="HANDLER"><block type="controls_if" id="%uQAaA_)OG*rqL_/NQ:8"><mutation else="1"/><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="+5r_cwkY-{gEuk8;l.)4"><field name="OP">GTE</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="device_temperature" id="n*tP]o7+/%5{|1Vx6NGD"/></value><value name="B"><shadow type="math_number" id="(kk8z5J^`DTuAG3BS-Bj"><field name="NUM">30</field></shadow></value></block></value><statement name="DO0"><block type="device_set_digital_pin" id="H_Sbv4CZm0DT~Dci_-yn"><field name="name">DigitalPin.P2</field><value name="value"><shadow type="math_number_minmax" id="58^ub8j%??K]*SBmG!Oe"><mutation min="0" max="1" label="Value" precision="0"/><field name="SLIDER">0</field></shadow></value></block></statement><statement name="ELSE"><block type="device_set_digital_pin" id="=dxzm)k=bi;B%-3:Mqn)"><field name="name">DigitalPin.P1</field><value name="value"><shadow type="math_number_minmax" id="gG-=wsc{CfnK5w#/ZR/["><mutation min="0" max="1" label="Value" precision="0"/><field name="SLIDER">0</field></shadow></value></block></statement></block></statement></block><block type="device_button_event" id=";8y:6I{/0*|*5o`Z[wK=" x="154" y="688"><field name="NAME">Button.AB</field><statement name="HANDLER"><block type="device_show_number" id="K0K,*?%t%_;JKx?ne}(p"><value name="number"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="device_temperature" id="7|=+.{xY!qQ#FxjT.M*l"/></value></block></statement></block></xml>