Repository navigation
Expand file tree
/
Copy pathmain.blocks
More file actions
7 lines (7 loc) · 12.9 KB
/
Copy pathmain.blocks
File metadata and controls
7 lines (7 loc) · 12.9 KB
1
2
3
4
5
6
7
<xml xmlns="https://developers.google.com/blockly/xml"><variables><variable id="o8tx}9Vrm[Nw.clr|yG4">BluetoothGroup</variable><variable id="4J*Jbl#=M$x:T8nO4Qw$">Number2</variable><variable id="ZLT`[0|YySOC-{oT4-Or">Bluetooth</variable></variables><block type="device_button_event" id="!KmoI=!L=jB%KQ;HWct*" x="336" y="-70"><field name="NAME">Button.A</field><statement name="HANDLER"><block type="device_clear_display" id="j]x6*Smga/CtN^RT.g$R"><next><block type="function_call" id="qfYfFG722IHU0M9fV9v0"><mutation name="Radio" functionid="vu+`caAgQR|+#XXkvPs{"></mutation><next><block type="variables_set" id="0FM9EoN`W06k6bT{nlZx"><field name="VAR" id="4J*Jbl#=M$x:T8nO4Qw$">Number2</field><value name="VALUE"><shadow type="math_number" id="}1jijfwR#!3l6R?4Wq}7"><field name="NUM">0</field></shadow></value></block></next></block></next></block></statement></block><block type="device_button_event" id="@o|xvi_Sqj*h2Y1|7ftv" x="711" y="-69"><field name="NAME">Button.B</field><statement name="HANDLER"><block type="device_clear_display" id="[8Mv,KwjS;%}pZ;4rumL"><next><block type="function_call" id="Tc~v~Q51zq$M98`FMwmi"><mutation name="Shapes" functionid="Jtyc3Qz/:mgcAOP(OWXn"></mutation><next><block type="variables_set" id="4JW7(a/V;+hAQK=8$p6$"><field name="VAR" id="4J*Jbl#=M$x:T8nO4Qw$">Number2</field><value name="VALUE"><shadow type="math_number" id="8t^,W7/DnLV.~XH.B{jK"><field name="NUM">0</field></shadow></value><next><block type="variables_set" id="3W==ak?lwLQ^j8!GnOhY"><field name="VAR" id="ZLT`[0|YySOC-{oT4-Or">Bluetooth</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="logic_boolean" id="4^Qi?#ThwTH79l*I@S.)"><field name="BOOL">FALSE</field></block></value></block></next></block></next></block></next></block></statement></block><block type="device_button_event" id="o8sm,As$PS4B1is}8X0|" x="1108" y="-81"><field name="NAME">Button.AB</field><statement name="HANDLER"><block type="playMelody" id="L:I]fFjiN74ydyB2dNw."><value name="melody"><shadow type="melody_editor" id="~XP2vlAw+ziw@v*$@fQQ"><field name="melody">"C5 B A G G A B C5 "</field></shadow></value><value name="tempo"><shadow type="math_number_minmax" id="I[~~u6~C2_@5KC{t3_v("><mutation min="40" max="500" label="Number" precision="0"></mutation><field name="SLIDER">120</field></shadow></value></block></statement></block><block type="pxt-on-start" id="X?}@J^F$3H(Fq~A9GL4v" x="0" y="0"><statement name="HANDLER"><block type="radio_set_group" id="gqG/^v1hv1^?.UoKWBpV"><value name="ID"><shadow type="math_number_minmax" id="uS$?Kxj.Z)czjh4|t:[|"><mutation min="0" max="255" label="Number" precision="0"></mutation><field name="SLIDER">1</field></shadow></value><next><block type="device_print_message" id="5`Q%s`u%,]diA^!l:Ia7"><value name="text"><shadow type="text" id="H[eG!tZY|L=Gd87QnwWQ"><field name="TEXT">Hi!</field></shadow></value><next><block type="variables_set" id="BNYUp/ctO.KoVet.F}lU"><field name="VAR" id="4J*Jbl#=M$x:T8nO4Qw$">Number2</field><value name="VALUE"><shadow type="math_number" id="!{xZ|f^09h$6K^fh]D{."><field name="NUM">0</field></shadow></value></block></next></block></next></block></statement></block><block type="function_definition" id="ju5Q|,8rO#31%P@.L#,+" x="346" y="172"><mutation name="Radio" functionid="vu+`caAgQR|+#XXkvPs{"></mutation><field name="function_name">Radio</field><statement name="STACK"><block type="radio_datagram_send_string" id="@r-i4aq7Qp=o]-y~7h1g"><value name="msg"><shadow type="text" id=".t8-:ks#8pR,rgsDbenr"><field name="TEXT">Hello World!</field></shadow></value><next><block type="device_print_message" id="`@l(_30TBIuUs%pIecgc"><value name="text"><shadow type="text" id="kf:jVeITnUNc1$5b!p{3"><field name="TEXT">Message Sent!</field></shadow></value></block></next></block></statement></block><block type="function_definition" id="gvc48N0l,B[X#ZQ+-m3}" x="732" y="216"><mutation name="Shapes" functionid="Jtyc3Qz/:mgcAOP(OWXn"></mutation><field name="function_name">Shapes</field><statement name="STACK"><block type="basic_show_icon" id="RY:[6_A{~6GZS4w3G_$F"><field name="i">IconNames.Heart</field><next><block type="basic_show_icon" id="lLSlaT.y=[[=QRDze{[:"><field name="i">IconNames.Tortoise</field><next><block type="basic_show_icon" id="Rr%BO4{Kj/v9-*+Chl;["><field name="i">IconNames.LeftTriangle</field><next><block type="basic_show_icon" id="CG+t:c9;1hgYp;+rt[Ah"><field name="i">IconNames.Pitchfork</field></block></next></block></next></block></next></block></statement></block><block type="device_gesture_event" id="Ct{hc5%+wYmm)dB;rdhs" x="957" y="228"><field name="NAME">Gesture.ThreeG</field><statement name="HANDLER"><block type="device_clear_display" id="{pWTw{[6[|pgh^*YuP2i"><next><block type="variables_set" id="merU.jkvg7vjiugUAYAk"><field name="VAR" id="4J*Jbl#=M$x:T8nO4Qw$">Number2</field><value name="VALUE"><shadow type="math_number" id="QMg/$.28J$19n;AgZo_+"><field name="NUM">0</field></shadow></value><next><block type="variables_set" id="#*=G:r-AteiN]TNn`r3M"><field name="VAR" id="ZLT`[0|YySOC-{oT4-Or">Bluetooth</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="logic_boolean" id="Xh|97h/hR{Xr@`2NmZ*,"><field name="BOOL">TRUE</field></block></value><next><block type="radio_datagram_send" id=".e^=L4:.E][#Nj(vdirc"><value name="value"><block type="device_random" id="|m?aUHUYCt[cB[*4pAk2"><value name="min"><shadow type="math_number" id="6P#1~eT~WsIM.Z9,zoe2"><field name="NUM">0</field></shadow></value><value name="limit"><shadow type="math_number" id="M6dzw7I5cY:nsJ%I=GYx"><field name="NUM">100</field></shadow></value></block></value><next><block type="basic_show_icon" id="`?lNtQ:WRkrhhjYpDb@w"><field name="i">IconNames.Skull</field></block></next></block></next></block></next></block></next></block></statement></block><block type="device_forever" id="9,45~XL(aVj})a~(y/xt" x="-6" y="285"><statement name="HANDLER"><block type="controls_if" id="mv;h8+-DJyYF6%:*V#-0"><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_negate" id="Au]-0eZm0DMpi6Rr@T+|"><value name="BOOL"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="variables_get" id="71mKn4Znu@q6HgL~vQs~"><field name="VAR" id="ZLT`[0|YySOC-{oT4-Or">Bluetooth</field></block></value></block></value><statement name="DO0"><block type="variables_change" id="Y,wgcs4nzR7H,BGltFt_"><field name="VAR" id="4J*Jbl#=M$x:T8nO4Qw$">Number2</field><value name="VALUE"><shadow type="math_number" id="n{eK^SF*i*$o58l:II4H"><field name="NUM">1</field></shadow></value><next><block type="device_show_number" id="+$:S8:F^$}gtwY`N$oFU"><value name="number"><block type="variables_get" id="JEbICeDb+27AM9RdpDy."><field name="VAR" id="4J*Jbl#=M$x:T8nO4Qw$">Number2</field></block></value></block></next></block></statement><next><block type="device_while" id="81=^9t~e,7)W/}?k-#;;"><value name="COND"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="TLTY(u2d?Rtg^/gBv/KS"><field name="OP">LTE</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="device_get_light_level" id="zFHMWn1/sFMG61ip:S[_"></block></value><value name="B"><shadow type="math_number" id="LCsLa@dR~Q-Y#bs9=wvy"><field name="NUM">30</field></shadow></value></block></value><statement name="DO"><block type="variables_set" id="kX+a(6)f$Y+U328RT^aC"><field name="VAR" id="ZLT`[0|YySOC-{oT4-Or">Bluetooth</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="logic_boolean" id="RL?okvHrU,=LsMOyg]||"><field name="BOOL">TRUE</field></block></value><next><block type="radio_datagram_send_string" id="ep$y3@eVW/vGRFPAYS[p"><value name="msg"><shadow type="text" id="g0.:(=/*yZ-80KnV21yt"><field name="TEXT">SOS</field></shadow></value><next><block type="device_show_leds" id="u~47qr^Gt|^7kde@AtLc"><field name="LEDS">`
. . # . .
. . # . .
. . # . .
. . . . .
. . # . .
`</field><next><block type="device_clear_display" id="I%Y[~Ox?`{[!e-!tbS8x"><next><block type="function_call" id="vtGC#QdxVhACZnh(AiZ9"><mutation name="SOSRadioGroup" functionid="hv2!-L3L}WOoVM{1lehJ"></mutation><next><block type="controls_if" id="Rw[f9EhKj?sv7qY_s)cG"><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="U~R3ac?W$B12-b:6=}0P"><field name="OP">GT</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="device_get_light_level" id="*w.V^Oov(z0bjNU9@v7["></block></value><value name="B"><shadow type="math_number" id="VjWH*1]T*j7_b7/K{1Z!"><field name="NUM">30</field></shadow></value></block></value><statement name="DO0"><block type="radio_datagram_send_string" id="Oi5SPmnz+`3,Nd2d517w"><value name="msg"><shadow type="text" id=",O}Qs=%)~W~Eyhb6+V(Y"><field name="TEXT">Safe!</field></shadow></value><next><block type="break_keyword" id="TFHm~[0/edMG*tkAecHe"></block></next></block></statement></block></next></block></next></block></next></block></next></block></next></block></statement></block></next></block></statement></block><block type="radio_on_number_drag" id="r=hy5(L%*_;q2iLx9}`j" x="378" y="537"><value name="HANDLER_DRAG_PARAM_receivedNumber"><shadow type="argument_reporter_number" id="KE=Lj94{=E-2:SieK1@u"><field name="VALUE">receivedNumber</field></shadow></value><statement name="HANDLER"><block type="device_clear_display" id="mJCZE!wq_LG9no5yp!Y5"><next><block type="device_show_number" id="$VG}rW:yF0.A5LxGkEmJ"><value name="number"><block type="argument_reporter_number" id="oJ_?!hP(0u2{1cZrH_c_"><field name="VALUE">receivedNumber</field></block></value><next><block type="device_print_message" id="-QB?}Bx#mvzJuIe_wtDV"><value name="text"><shadow type="text"><field name="TEXT"></field></shadow><block type="text_join" id="5!,?H5mJ[r17.$$w_:qT"><mutation items="1"></mutation><value name="ADD0"><shadow type="text"><field name="TEXT"></field></shadow><block type="radio_received_packet" id="N|D[}z/]LmK)Iz}jks{}"><value name="type"><shadow type="radio_packet_property" id="%4UFQNyIsAQHL:+1nZ?["><field name="note">RadioPacketProperty.SignalStrength</field></shadow></value></block></value></block></value></block></next></block></next></block></statement></block><block type="function_definition" id="+KH8q[v0B.]s;xTy|#o#" x="953" y="572"><mutation name="SOSRadioGroup" functionid="hv2!-L3L}WOoVM{1lehJ"></mutation><field name="function_name">SOSRadioGroup</field><statement name="STACK"><block type="radio_set_group" id="8nBHh*hr_[Glp|0/!S`H"><value name="ID"><shadow type="math_number_minmax"><mutation min="0" max="255"></mutation><field name="SLIDER">0</field></shadow><block type="variables_get" id="(7o)%bGp+p%k=TyC-SD!"><field name="VAR" id="o8tx}9Vrm[Nw.clr|yG4">BluetoothGroup</field></block></value><next><block type="variables_change" id="e6?mi6[E`*k96en=s.-9"><field name="VAR" id="o8tx}9Vrm[Nw.clr|yG4">BluetoothGroup</field><value name="VALUE"><shadow type="math_number" id="9`yqKflR%]@sfqG(D23~"><field name="NUM">1</field></shadow></value><next><block type="controls_if" id="y-nS[e{EH9TruqvZU8nw"><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="P[=I*iW9h`+c/Uk`Q?f*"><field name="OP">EQ</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="5!cX|R!-eq8QZ9Wg{A`n"><field name="VAR" id="o8tx}9Vrm[Nw.clr|yG4">BluetoothGroup</field></block></value><value name="B"><shadow type="math_number" id="JKGH?A)haToG)4(k_TY/"><field name="NUM">20</field></shadow></value></block></value><statement name="DO0"><block type="variables_set" id="K1LG}z(Kt1`]m_/Hmo#g"><field name="VAR" id="o8tx}9Vrm[Nw.clr|yG4">BluetoothGroup</field><value name="VALUE"><shadow type="math_number" id="Bn7odHn^P:udtv1J6:PN"><field name="NUM">0</field></shadow></value></block></statement></block></next></block></next></block></statement></block><block type="radio_on_string_drag" id="?y{pF+B[5p;{LGBf8|@3" x="456" y="832"><value name="HANDLER_DRAG_PARAM_receivedString"><shadow type="argument_reporter_string" id="GQ{,*n%#:(y0d#xYtzuj"><field name="VALUE">receivedString</field></shadow></value><statement name="HANDLER"><block type="device_clear_display" id="R:Te::O~m#E!HxU7bbqv"><next><block type="device_print_message" id="u}G^fOO@LS]uvQ6[HcM`"><value name="text"><block type="argument_reporter_string" id="XUykNciLIfu/!7n)LiC{"><field name="VALUE">receivedString</field></block></value><next><block type="device_print_message" id="()f6(1Ia1JO|,MU~b{2,"><value name="text"><shadow type="text"><field name="TEXT"></field></shadow><block type="text_join" id="aa29|H4UBe0x/=w=Y9-r"><mutation items="1"></mutation><value name="ADD0"><shadow type="text"><field name="TEXT"></field></shadow><block type="radio_received_packet" id=":^pI+GS2]GdY}Am9B%kR"><value name="type"><shadow type="radio_packet_property" id="),w%6ULM,i+bwNA8B_=y"><field name="note">RadioPacketProperty.SignalStrength</field></shadow></value></block></value></block></value></block></next></block></next></block></statement></block></xml>