-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.blocks
1 lines (1 loc) · 10.9 KB
/
main.blocks
1
<xml xmlns="https://developers.google.com/blockly/xml"><variables><variable id="Uzc2J#2_kM(|mv_X5OXq">y</variable></variables><block type="device_gesture_event" id="?`[wd*CDI:o^vkmcZdQi" x="0" y="0"><field name="NAME">Gesture.Shake</field><statement name="HANDLER"><block type="radio_datagram_send" id="Axi15Vm/k6[hJIUigLnX"><value name="value"><shadow type="math_number" id="1,K=A=w1qH-;tdw}A6Y5"><field name="NUM">0</field></shadow><block type="variables_get" id="ga(WWW0r]UQG^#hCew8Z"><field name="VAR" id="Uzc2J#2_kM(|mv_X5OXq">y</field></block></value><next><block type="variables_set" id="F16e|Ft|m|[w`pkkS9]6"><field name="VAR" id="Uzc2J#2_kM(|mv_X5OXq">y</field><value name="VALUE"><shadow type="math_number" id="bl5ZDg,BzzT`I.@TiRX]"><field name="NUM">0</field></shadow><block type="device_random" id="yoXlb,,}X5e?6b^(#M8I"><value name="min"><shadow type="math_number" id="e@[Afk7ateWIch1,k+w0"><field name="NUM">0</field></shadow></value><value name="limit"><shadow type="math_number" id=":qT=BZYaY166*sQ|xvw$"><field name="NUM">2</field></shadow></value></block></value><next><block type="controls_if" id="-CMc35flN,iS%@~/g(cg"><mutation elseif="1" else="1"/><value name="IF0"><shadow type="logic_boolean" id="OTNmaf)WH0kRj@s~VXf@"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="iB3[bd^-[TnC2tU6$d6s"><field name="OP">EQ</field><value name="A"><shadow type="math_number" id="AG2v|lA8UgYgeMuRHrPG"><field name="NUM">0</field></shadow><block type="variables_get" id=",BUCh-N9X^6*i9)H7*k0"><field name="VAR" id="Uzc2J#2_kM(|mv_X5OXq">y</field></block></value><value name="B"><shadow type="math_number" id="WoR@+egUHdRe?)-Y]KJ("><field name="NUM">0</field></shadow></value></block></value><statement name="DO0"><block type="device_show_leds" id="aA]-kf0d9K[*e|)BK.ip"><field name="LEDS">` # # # # # # . . . # # . . . # # . . . # # # # # # `</field></block></statement><value name="IF1"><block type="logic_compare" id="}%:Wn|qFk5#PH^xlb:A3"><field name="OP">EQ</field><value name="A"><shadow type="math_number" id="Cw/BSS1Ur^s.TXfVLx;B"><field name="NUM">0</field></shadow><block type="variables_get" id="^X5%E)NK76MLxE+odEZ["><field name="VAR" id="Uzc2J#2_kM(|mv_X5OXq">y</field></block></value><value name="B"><shadow type="math_number" id="x}0I}5pVYW)`j|ycoc.3"><field name="NUM">1</field></shadow></value></block></value><statement name="DO1"><block type="device_show_leds" id="%q51:tOah`vq(E50qAhI"><field name="LEDS">` # # . . # # # . # . . . # . . # # . # . # # . . # `</field></block></statement><statement name="ELSE"><block type="device_show_leds" id="q(3ZrwEM1dVP{SBb*6T."><field name="LEDS">` . . . . . . # # # . . # # # . . # # # . . . . . . `</field></block></statement></block></next></block></next></block></statement></block><block type="radio_on_number_drag" id="19o5*)FSb@wEOUnaaTV3" x="549" y="28"><value name="HANDLER_DRAG_PARAM_receivedNumber"><shadow type="argument_reporter_number" id="HHQ`MtF8UsA?$*mTR^AW"><field name="VALUE">receivedNumber</field></shadow></value><statement name="HANDLER"><block type="variables_set" id="^GDs/58US1*nk|31u#r%"><field name="VAR" id="Uzc2J#2_kM(|mv_X5OXq">y</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="device_random" id="(Qt|Uzpu_Y0nF8SznY[3"><value name="min"><shadow type="math_number" id="SSdNKw@k-.=8~Rh.a^6T"><field name="NUM">0</field></shadow></value><value name="limit"><shadow type="math_number" id="5c3SbP+Z;L|A-1*%/|rY"><field name="NUM">2</field></shadow></value></block></value><next><block type="controls_if" id="9x.dQCTk?nxO6~O,%a5J"><mutation elseif="1" else="1"/><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="t/bv0mm=AfJzN/H{JR`^"><field name="OP">EQ</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="CP!7SMl4O9M6w+=UI(5h"><field name="VAR" id="Uzc2J#2_kM(|mv_X5OXq">y</field></block></value><value name="B"><shadow type="math_number" id="B,m7VOB.+4,/]jdj(pIh"><field name="NUM">0</field></shadow></value></block></value><statement name="DO0"><block type="device_show_leds" id="X}Elq(}^72jc-0G*tIcZ"><field name="LEDS">` # # # # # # . . . # # . . . # # . . . # # # # # # `</field></block></statement><value name="IF1"><block type="logic_compare" id="HV!,SJ5APv_^*O!J,FAP"><field name="OP">EQ</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id=":pPFY=cj%$P0@doEe#CD"><field name="VAR" id="Uzc2J#2_kM(|mv_X5OXq">y</field></block></value><value name="B"><shadow type="math_number" id=",%9h.o=Qph2:4tz$f:mF"><field name="NUM">1</field></shadow></value></block></value><statement name="DO1"><block type="device_show_leds" id="yMUfdRJh`F}bnD,vR.f2"><field name="LEDS">` # # . . # # # . # . . . # . . # # . # . # # . . # `</field></block></statement><statement name="ELSE"><block type="device_show_leds" id="VxQjuOA0r5$N}H7}7tYB"><field name="LEDS">` . . . . . . # # # . . # # # . . # # # . . . . . . `</field></block></statement><next><block type="variables_set" id="a#Zu[zy2W0SS{-yBYVRd"><field name="VAR" id="Uzc2J#2_kM(|mv_X5OXq">y</field><value name="VALUE"><shadow type="math_number" id=".7qWqA3@}%f?EWYZuMaa"><field name="NUM">0</field></shadow><block type="device_random" id="(SjU^^oTLD)r#1RIVCrL"><value name="min"><shadow type="math_number" id="cziv/$ra!8}J+VN62=IB"><field name="NUM">0</field></shadow></value><value name="limit"><shadow type="math_number" id=")Ls_Yf|ey,GJoE4!e:-s"><field name="NUM">2</field></shadow></value></block></value><next><block type="device_pause" id="7Km33M^=@}CNl!gmQL)n"><value name="pause"><shadow type="timePicker" id="fUTIvdtb.Hg~=(TQ=-)|"><field name="ms">2000</field></shadow></value><next><block type="controls_if" id="nF4AWv#G4-!Z/CkfqC_P"><mutation elseif="3" else="1"/><value name="IF0"><shadow type="logic_boolean" id="mv1!!;oN=!74#+oIbfT/"><field name="BOOL">TRUE</field></shadow><block type="logic_operation" id="|,|ySr*yCB;)Xu^)TbXf"><field name="OP">AND</field><value name="A"><block type="logic_compare" id="?+5M+aCr1ytE?f6B#Wtg"><field name="OP">EQ</field><value name="A"><shadow type="math_number" id="ApE1m4%%~$:jk`C^t=A`"><field name="NUM">0</field></shadow><block type="argument_reporter_number" id="B=Hb]1~pv8C=.w39R03s"><field name="VALUE">receivedNumber</field></block></value><value name="B"><shadow type="math_number" id="%G_oey4ytt2~}aQ].p3y"><field name="NUM">2</field></shadow></value></block></value><value name="B"><block type="logic_compare" id="sftqZ5^lgEzn#}=1x2Jt"><field name="OP">EQ</field><value name="A"><shadow type="math_number" id="X6/%gTff[@n,5B#Qz-5*"><field name="NUM">0</field></shadow><block type="variables_get" id="[o(3HygD5/)3$@I?-p_4"><field name="VAR" id="Uzc2J#2_kM(|mv_X5OXq">y</field></block></value><value name="B"><shadow type="math_number" id="u46o7I3)*A9R]x}5!)Cx"><field name="NUM">0</field></shadow></value></block></value></block></value><statement name="DO0"><block type="device_print_message" id="iGd:E3L-)sBoVB;gRQ8A"><value name="text"><shadow type="text" id="xi:rs]30p*((er.e?4P^"><field name="TEXT">V</field></shadow></value></block></statement><value name="IF1"><block type="logic_operation" id="4B}Qjqwh=nJP{M}!biYf"><field name="OP">AND</field><value name="A"><block type="logic_compare" id="j#n0s)ZKyv_rjob_M^Hw"><field name="OP">EQ</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="argument_reporter_number" id="yOJTUVXj9.nJtE#f7-a^"><field name="VALUE">receivedNumber</field></block></value><value name="B"><shadow type="math_number" id="Z?)y/ibi:-G73rM?Pqb-"><field name="NUM">1</field></shadow></value></block></value><value name="B"><block type="logic_compare" id="~HyL38@iP]9fDcv1!J6["><field name="OP">EQ</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="M[!DjjXRq2)k(T]fSy/."><field name="VAR" id="Uzc2J#2_kM(|mv_X5OXq">y</field></block></value><value name="B"><shadow type="math_number" id="g]G-cgo?-[;qeWBO}ajH"><field name="NUM">2</field></shadow></value></block></value></block></value><statement name="DO1"><block type="device_print_message" id="bJ%=%eR+o._:NVxE}LS_"><value name="text"><shadow type="text" id="se3^i2TY-Y_ZV0{jT!4#"><field name="TEXT">V</field></shadow></value></block></statement><value name="IF2"><block type="logic_operation" id="{K/=D,Je/4z4QVM+S6.@"><field name="OP">AND</field><value name="A"><block type="logic_compare" id="t#b7P::G4PSw5v+SE`1B"><field name="OP">EQ</field><value name="A"><shadow type="math_number" id="$l#gN|^w1fR(,i#mu*eb"><field name="NUM">0</field></shadow><block type="argument_reporter_number" id="Uu-O~(0)T|iGa*!)xi`:"><field name="VALUE">receivedNumber</field></block></value><value name="B"><shadow type="math_number" id="#vZd1:YTqzC}AawNiwGV"><field name="NUM">0</field></shadow></value></block></value><value name="B"><block type="logic_compare" id="][/$5SXjv_GcbaQE*bb4"><field name="OP">EQ</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="f1yN*u#SwQ5K=v3gu)nJ"><field name="VAR" id="Uzc2J#2_kM(|mv_X5OXq">y</field></block></value><value name="B"><shadow type="math_number" id="n+~Q:RZfI@45oju@b1Z|"><field name="NUM">1</field></shadow></value></block></value></block></value><statement name="DO2"><block type="device_print_message" id="JG3U=!=+`Gip6+~9TY]e"><value name="text"><shadow type="text" id="]M~|?n/{p+xCFA*6;m8Q"><field name="TEXT">V</field></shadow></value></block></statement><value name="IF3"><block type="logic_compare" id="Aae()OpcLRBjqCD4K:oQ"><field name="OP">EQ</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="argument_reporter_number" id="i?FhO^bL#-,qn)wwJlM."><field name="VALUE">receivedNumber</field></block></value><value name="B"><shadow type="math_number" id="?vj8wnUT5]za@m3tIskP"><field name="NUM">0</field></shadow><block type="variables_get" id="i1Ch4r6SP|;w?HA)i4!$"><field name="VAR" id="Uzc2J#2_kM(|mv_X5OXq">y</field></block></value></block></value><statement name="DO3"><block type="device_print_message" id="[vEjHII@}=m$8fRdxEIa"><value name="text"><shadow type="text" id="*!6wSe$;Q|-3a6GsL~MD"><field name="TEXT">E</field></shadow></value></block></statement><statement name="ELSE"><block type="device_print_message" id="tD+O{P9rwSZ(7BaH8(~|"><value name="text"><shadow type="text" id="@[Mt3;dO8JCp8rxOgz;B"><field name="TEXT">D</field></shadow></value></block></statement></block></next></block></next></block></next></block></next></block></statement></block></xml>