-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.blocks
1 lines (1 loc) · 15.4 KB
/
main.blocks
1
<xml xmlns="https://developers.google.com/blockly/xml"><block type="pxt-on-start" id="P6I)s]qaweRud8iJIpvb" x="394" y="0"><statement name="HANDLER"><block type="radio_set_group" id="cm+(?/*@ne]@:+fZt(eb"><value name="ID"><shadow type="math_number_minmax" id="@QX7qIvd8KJ$6{[{qMig"><mutation min="0" max="255" label="Id" precision="0"/><field name="SLIDER">1</field></shadow></value></block></statement></block><block type="function_definition" id="36XzKnf;S[^IxpbyiTLH" x="1329" y="36"><mutation name="przod" functionid="zN7:?K8nkiWWRLqo~-go"/><field name="function_name">przod</field><statement name="STACK"><block type="device_set_digital_pin" id="LaW!LtZ/Be2oKGp7iei6"><field name="name">DigitalPin.P12</field><value name="value"><shadow type="math_number_minmax" id=",zo{j2BCv|t{P@LR.`tv"><mutation min="0" max="1" label="Value" precision="0"/><field name="SLIDER">0</field></shadow></value><next><block type="device_set_digital_pin" id="D$M;RUBSHb3x]k%Vq#Rm"><field name="name">DigitalPin.P2</field><value name="value"><shadow type="math_number_minmax" id="ETwIcIoX55A;tk[1C$$["><mutation min="0" max="1" label="Value" precision="0"/><field name="SLIDER">1</field></shadow></value><next><block type="device_set_digital_pin" id="D6~X/*WEIKyXWSQEY0Iv"><field name="name">DigitalPin.P13</field><value name="value"><shadow type="math_number_minmax" id="D1B-FSn#=oDf.@6H3fy`"><mutation min="0" max="1" label="Value" precision="0"/><field name="SLIDER">1</field></shadow></value><next><block type="device_set_digital_pin" id="dcg6W%_BtdUV?B42_]*R"><field name="name">DigitalPin.P14</field><value name="value"><shadow type="math_number_minmax" id="[Dl1Jh,D@s=X_pBz^edb"><mutation min="0" max="1" label="Value" precision="0"/><field name="SLIDER">0</field></shadow></value><next><block type="device_pause" id="VsPpG~%2Ab;^h!$[Cu6r"><value name="pause"><shadow type="timePicker" id="iNT!-Shq;]$FGm.fr^s["><field name="ms">500</field></shadow></value><next><block type="function_call" id="4Ihevco7E`4bsJ4]:(c8"><mutation name="stop" functionid="*{(V-%..CmF_-InO[fHE"/></block></next></block></next></block></next></block></next></block></next></block></statement></block><block type="radio_on_number_drag" id="CzAa@+Vt)p0S1@6DTn5o" x="826" y="85"><value name="HANDLER_DRAG_PARAM_receivedNumber"><shadow type="argument_reporter_number" id="J)E*X8I(CK4+V_/^_w7N"><field name="VALUE">receivedNumber</field></shadow></value><statement name="HANDLER"><block type="device_set_analog_pin" id="/BMpe*w?Kjf6wv(-7`4U"><field name="name">AnalogPin.P11</field><value name="value"><shadow type="math_number_minmax" id="))a4K1fBk/%u+d*]M@ls"><mutation min="0" max="1023" label="Value" precision="0"/><field name="SLIDER">511</field></shadow></value><next><block type="device_set_analog_pin" id="-qYe%X[GVoW-!+pNNZ_/"><field name="name">AnalogPin.P15</field><value name="value"><shadow type="math_number_minmax" id="d`#a3r;$7q_^`6uIF8}2"><mutation min="0" max="1023" label="Value" precision="0"/><field name="SLIDER">511</field></shadow></value><next><block type="device_show_number" id="iCScv,k8W$.h/Gu6{a]M"><value name="number"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="argument_reporter_number" id="S[+,hslOGNIY^5G^TON:"><field name="VALUE">receivedNumber</field></block></value><next><block type="controls_if" id="=hYY?9vuM.=eU?1+qDJu"><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="CJP[x8n_?GbR4Erq8v|W"><field name="OP">EQ</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="argument_reporter_number" id="fu9h^P*pyv[0|K8h]*FV"><field name="VALUE">receivedNumber</field></block></value><value name="B"><shadow type="math_number" id="Cn}u.$D-SI81IRtkffj{"><field name="NUM">0</field></shadow></value></block></value><statement name="DO0"><block type="function_call" id="NA[)*Xy=iJUipgJe:pE="><mutation name="stop" functionid="*{(V-%..CmF_-InO[fHE"/></block></statement><next><block type="controls_if" id="|DT=JAD5r,Eb6%.mb_lt"><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="QS}m=BsmAa[[{;2v^wS}"><field name="OP">EQ</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="argument_reporter_number" id="7ER,ZuMox9nELSo-Nu7;"><field name="VALUE">receivedNumber</field></block></value><value name="B"><shadow type="math_number" id="J(;d|9WPtAS1b.JXYrrz"><field name="NUM">1</field></shadow></value></block></value><statement name="DO0"><block type="function_call" id="qDED?7jfMm2|;=Psn%_h"><mutation name="przod" functionid="zN7:?K8nkiWWRLqo~-go"/></block></statement></block></next></block></next></block></next></block></next></block></statement></block><block type="device_button_event" id="#0U,!tLN1N07OZ~T-6Ii" x="212" y="192"><field name="NAME">Button.A</field></block><block type="device_button_event" id="m2wJW;Q;T/oUCzk3c(H3" x="498" y="227"><field name="NAME">Button.B</field></block><block type="input_logo_event" id="y-lhunLV!;h~A%:gQB(g" x="0" y="403"><field name="action">TouchButtonEvent.Touched</field><statement name="HANDLER"><block type="radio_datagram_send" id=")v30E`%/(2eq~U[7JaKX"><value name="value"><shadow type="math_number" id="8voBy1c`xtCZ#!PCt94I"><field name="NUM">0</field></shadow></value></block></statement></block><block type="function_definition" id="%LFH6j8Ef0Hus?A{7/xR" x="1628" y="319"><mutation name="prawo" functionid="}?C$|s+COJ^jwGUS3ia2"/><field name="function_name">prawo</field><statement name="STACK"><block type="device_set_digital_pin" id="Nj*wA.4D4qQda~XCTyK3"><field name="name">DigitalPin.P12</field><value name="value"><shadow type="math_number_minmax" id="8J=@[}%q#[he=_tYG,Ry"><mutation min="0" max="1" label="Value" precision="0"/><field name="SLIDER">0</field></shadow></value><next><block type="device_set_digital_pin" id="c+of-@G{VkGlSWHkzE[,"><field name="name">DigitalPin.P2</field><value name="value"><shadow type="math_number_minmax" id="TbCf(Jc/R0-:QxX%[Sas"><mutation min="0" max="1" label="Value" precision="0"/><field name="SLIDER">1</field></shadow></value><next><block type="device_set_digital_pin" id="cbjuD5M+,)[jJS$-eO93"><field name="name">DigitalPin.P13</field><value name="value"><shadow type="math_number_minmax" id="8;?|@}%pBE=P5_ypi[,7"><mutation min="0" max="1" label="Value" precision="0"/><field name="SLIDER">0</field></shadow></value><next><block type="device_set_digital_pin" id="I/h-at-rWKFSiP:8KXWc"><field name="name">DigitalPin.P14</field><value name="value"><shadow type="math_number_minmax" id="E]jTiV3fv^llwB2biHzF"><mutation min="0" max="1" label="Value" precision="0"/><field name="SLIDER">1</field></shadow></value><next><block type="device_pause" id="^qFr;yD^OC+=3:dnUe0k"><value name="pause"><shadow type="timePicker" id="N`ztjpC_{pLyci,;y-.J"><field name="ms">100</field></shadow></value><next><block type="function_call" id="=rcMznIbACGUM4wK!i$b"><mutation name="stop" functionid="*{(V-%..CmF_-InO[fHE"/></block></next></block></next></block></next></block></next></block></next></block></statement></block><block type="device_gesture_event" id="mPoq;X?Vf@,GNS?aXWi^" x="246" y="575"><field name="NAME">Gesture.LogoDown</field><statement name="HANDLER"><block type="radio_datagram_send" id="{nhDRw,w^x;Lv}(ZDS2H"><value name="value"><shadow type="math_number" id="i[RcVyUke3:x@z(zdRdl"><field name="NUM">1</field></shadow></value></block></statement></block><block type="function_definition" id="?$*KS;VzAPAim=#]~DA." x="1247" y="553"><mutation name="tyl" functionid="|UD=!UScdzY~.L2#,?%M"/><field name="function_name">tyl</field><statement name="STACK"><block type="device_set_digital_pin" id="M2le-mP1Wy:CMEGvR]k-"><field name="name">DigitalPin.P12</field><value name="value"><shadow type="math_number_minmax" id=":740{[.:At5D(c:4s:uX"><mutation min="0" max="1" label="Value" precision="0"/><field name="SLIDER">1</field></shadow></value><next><block type="device_set_digital_pin" id="}wv0*Q%[email protected]"><field name="name">DigitalPin.P2</field><value name="value"><shadow type="math_number_minmax" id="QH3Ui:01H0+:~ijE%k1%"><mutation min="0" max="1" label="Value" precision="0"/><field name="SLIDER">0</field></shadow></value><next><block type="device_set_digital_pin" id="e=k:z+{x^-WaagK|Xje3"><field name="name">DigitalPin.P13</field><value name="value"><shadow type="math_number_minmax" id="wMI}bYzdTFZhnh=x`Q1/"><mutation min="0" max="1" label="Value" precision="0"/><field name="SLIDER">0</field></shadow></value><next><block type="device_set_digital_pin" id="R#7?~oBxN$#Bnt:3Ki!-"><field name="name">DigitalPin.P14</field><value name="value"><shadow type="math_number_minmax" id="FB,`uIMuPQx@M:IwTYTY"><mutation min="0" max="1" label="Value" precision="0"/><field name="SLIDER">1</field></shadow></value><next><block type="device_pause" id="*E~K-H58{5EOI?$aDkOI"><value name="pause"><shadow type="timePicker" id="IS9fYf,3U`ims#Dfh`:="><field name="ms">500</field></shadow></value><next><block type="function_call" id="=UkOSDdyQ8]H!l~}+%2N"><mutation name="stop" functionid="*{(V-%..CmF_-InO[fHE"/></block></next></block></next></block></next></block></next></block></next></block></statement></block><block type="controls_if" id="qCs,Uk9BUH;jGS-zcdWt" disabled="true" x="807" y="644"><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="LR}{4uv[^Lp=g!JM8{`m"><field name="OP">EQ</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="argument_reporter_number" id="~_mn{[eiHq#kQ1B89X{l"><field name="VALUE">receivedNumber</field></block></value><value name="B"><shadow type="math_number" id="$mKC*rMRFQlW6%]3G;50"><field name="NUM">2</field></shadow></value></block></value><statement name="DO0"><block type="function_call" id="Q7j8Pl#M.oDvC;(7((,*"><mutation name="tyl" functionid="|UD=!UScdzY~.L2#,?%M"/></block></statement><next><block type="controls_if" id="w!?TMQyb0p@Yfkt2WD+n" disabled="true"><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="mKv]jHh5Wm5.1!EttZ:l"><field name="OP">EQ</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="argument_reporter_number" id="U@-c^%PE@?D]e6pZ^V@`"><field name="VALUE">receivedNumber</field></block></value><value name="B"><shadow type="math_number" id="aV=I(4M^6}Y]QlAZw%09"><field name="NUM">3</field></shadow></value></block></value><statement name="DO0"><block type="function_call" id="gf#fWspOj$(:8:$0G.id"><mutation name="prawo" functionid="}?C$|s+COJ^jwGUS3ia2"/></block></statement><next><block type="controls_if" id="{I)9oN4$[WVETt^O-N{j" disabled="true"><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="7Mg0.|:=@R%=PAaYeI/a"><field name="OP">EQ</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="argument_reporter_number" id="r-w*[fN(oHQ3?}]+s?BX"><field name="VALUE">receivedNumber</field></block></value><value name="B"><shadow type="math_number" id="wXpHZgYP6PR2]a=w)_/M"><field name="NUM">4</field></shadow></value></block></value><statement name="DO0"><block type="function_call" id=".,OXa]y5c5oL6G6M5rHb"><mutation name="lewo" functionid="#6W4nFmK|W.*]|80|Ld`"/></block></statement></block></next></block></next></block><block type="device_gesture_event" id="5|SAuZ_MGOm87*1COjUd" x="53" y="738"><field name="NAME">Gesture.TiltLeft</field><statement name="HANDLER"><block type="radio_datagram_send" id="}k,ybftN-ko|~Ez0/|~S"><value name="value"><shadow type="math_number" id="Db:ECBl,CYU:~N$2.G+6"><field name="NUM">4</field></shadow></value></block></statement></block><block type="device_gesture_event" id="gEksvM(3_2m~!ty6Kh8P" x="463" y="731"><field name="NAME">Gesture.TiltRight</field><statement name="HANDLER"><block type="radio_datagram_send" id="^~zC0!*zM/,_OD;wD7UW"><value name="value"><shadow type="math_number" id="S7ehw@j{*;8YhD%0k^wn"><field name="NUM">3</field></shadow></value></block></statement></block><block type="function_definition" id="vf1RD9nvx|YXTyel9GK0" x="1642" y="690"><mutation name="lewo" functionid="#6W4nFmK|W.*]|80|Ld`"/><field name="function_name">lewo</field><statement name="STACK"><block type="device_set_digital_pin" id="mrIy:rVcDYxQQp=QTI4w"><field name="name">DigitalPin.P12</field><value name="value"><shadow type="math_number_minmax" id="st_|!EsXfZWoSwa8BYPL"><mutation min="0" max="1" label="Value" precision="0"/><field name="SLIDER">1</field></shadow></value><next><block type="device_set_digital_pin" id="(d%!m!Nfy1dy-)8(;*Cm"><field name="name">DigitalPin.P2</field><value name="value"><shadow type="math_number_minmax" id="T6p_~_Voni]CWgXqp*go"><mutation min="0" max="1" label="Value" precision="0"/><field name="SLIDER">0</field></shadow></value><next><block type="device_set_digital_pin" id="@9mut#$(#}0dzaDOkm1["><field name="name">DigitalPin.P13</field><value name="value"><shadow type="math_number_minmax" id=".dm?.iKybMbRT3bky@h5"><mutation min="0" max="1" label="Value" precision="0"/><field name="SLIDER">1</field></shadow></value><next><block type="device_set_digital_pin" id="4sl9bA+LhJ5wOssR`=kX"><field name="name">DigitalPin.P14</field><value name="value"><shadow type="math_number_minmax" id="Fxc))RpP;)e:V)Mo0XOR"><mutation min="0" max="1" label="Value" precision="0"/><field name="SLIDER">0</field></shadow></value><next><block type="device_pause" id="cX8O%Nm_Zo!@1$rR,+rl"><value name="pause"><shadow type="timePicker" id="YUY)CCo4oLSdNo4-ll!6"><field name="ms">100</field></shadow></value><next><block type="function_call" id="@H(-2%3B-/5z~gtTR{N)"><mutation name="stop" functionid="*{(V-%..CmF_-InO[fHE"/></block></next></block></next></block></next></block></next></block></next></block></statement></block><block type="device_gesture_event" id="*8ad%=|5(o?Z]cc{@(%?" x="247" y="946"><field name="NAME">Gesture.LogoUp</field><statement name="HANDLER"><block type="radio_datagram_send" id="x:8WSvRlL`4BL)@8$:c("><value name="value"><shadow type="math_number" id="L_]i-86?%A{dvG91?N[`"><field name="NUM">2</field></shadow></value></block></statement></block><block type="function_definition" id="6hFUhgvkaV)0T@iHP}W." x="1253" y="964"><mutation name="stop" functionid="*{(V-%..CmF_-InO[fHE"/><field name="function_name">stop</field><statement name="STACK"><block type="device_set_digital_pin" id="Mu`|xc:}I*g?NiRjV{1q"><field name="name">DigitalPin.P12</field><value name="value"><shadow type="math_number_minmax" id="P0{rg{OU`ib3JVz{]$X2"><mutation min="0" max="1" label="Value" precision="0"/><field name="SLIDER">0</field></shadow></value><next><block type="device_set_digital_pin" id="7c%4D=g.JLF%iDORe(/2"><field name="name">DigitalPin.P2</field><value name="value"><shadow type="math_number_minmax" id="FD~MkZUfz#Ctr6Pk2Br;"><mutation min="0" max="1" label="Value" precision="0"/><field name="SLIDER">0</field></shadow></value><next><block type="device_set_digital_pin" id="[TC7iphpt@{g6-Q5l,rx"><field name="name">DigitalPin.P13</field><value name="value"><shadow type="math_number_minmax" id="njoB:O4Oumc#,$N;kzF?"><mutation min="0" max="1" label="Value" precision="0"/><field name="SLIDER">0</field></shadow></value><next><block type="device_set_digital_pin" id="F?ZBVx+RV/FSi1X2Y}Kv"><field name="name">DigitalPin.P14</field><value name="value"><shadow type="math_number_minmax" id="N%OqTbLokvjH?i3ijv-!"><mutation min="0" max="1" label="Value" precision="0"/><field name="SLIDER">0</field></shadow></value></block></next></block></next></block></next></block></statement></block></xml>