-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.blocks
13 lines (13 loc) · 12.4 KB
/
main.blocks
1
2
3
4
5
6
7
8
9
10
11
12
13
<xml xmlns="https://developers.google.com/blockly/xml"><variables><variable id="SY{u;T,w(y+Ew-PD]hzO">text list</variable><variable id="s,SSvH%=0.;af2mQi^)q">Auswahl</variable><variable id="a.bYUFJ[E*4ki3w=)^lR">mode</variable><variable id="k5CAGF(is9D601G8]G)@">Rollen</variable><variable id="6G99rd3aVowOUQRNq=vO">list</variable></variables><block type="pxt-on-start" id="YGcUAJFv^;HX8u%*9^%*" x="-532" y="-25"><statement name="HANDLER"><block type="variables_set" id="gR|fF0j8k(v2]tEMperO"><field name="VAR" id="k5CAGF(is9D601G8]G)@">Rollen</field><value name="VALUE"><block type="lists_create_with" id="]TU3);nixvXY4k{sQnF=" inline="false"><mutation items="4" horizontalafter="3"/><value name="ADD0"><shadow type="text" id=":{~UFm0_=h6bY.KCzCu1"><field name="TEXT">Rollen</field></shadow></value><value name="ADD1"><shadow type="text" id="g92vP|=yv1!`5aeLu#a+"><field name="TEXT">W</field></shadow></value><value name="ADD2"><shadow type="text" id="vcyCD3s@DHi%T]Fu/7Mk"><field name="TEXT">H</field></shadow></value><value name="ADD3"><shadow type="text" id="tg1-h3cIpADBHAuHARL}"><field name="TEXT">D</field></shadow></value></block></value><next><block type="variables_set" id="+,%F{Ekl)0H?Hi^97Ul3"><field name="VAR" id="s,SSvH%=0.;af2mQi^)q">Auswahl</field><value name="VALUE"><shadow type="math_number" id=",dRQ*?4pk95tw6_w*a;`"><field name="NUM">0</field></shadow></value><next><block type="variables_set" id="Mfnx@/0Nu96|#,7x5Cki"><field name="VAR" id="a.bYUFJ[E*4ki3w=)^lR">mode</field><value name="VALUE"><shadow type="math_number" id="+Ko8F@+6I4Vn~5bm%I(G"><field name="NUM">0</field></shadow></value><next><block type="device_print_message" id="M(W9^KrpNVVPA+z^lF`W"><value name="text"><shadow type="text"><field name="TEXT">Hello!</field></shadow><block type="lists_index_get" id="_C0j{N-`M):|^vt%P3lR"><value name="LIST"><block type="variables_get" id="|fO-*r/|4=!l0TX*DO!O"><field name="VAR" id="k5CAGF(is9D601G8]G)@">Rollen</field></block></value><value name="INDEX"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="r9jLO/JI5/.w8,@P#um8"><field name="VAR" id="s,SSvH%=0.;af2mQi^)q">Auswahl</field></block></value></block></value></block></next></block></next></block></next></block></statement></block><block type="device_button_event" id="?P/+72?%-)pwMyVTzV-(" x="0" y="0"><field name="NAME">Button.A</field><statement name="HANDLER"><block type="controls_if" id="p+uD8,5qg8pkEANw{VTJ"><mutation elseif="3" else="1"/><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="3u%bxb?=_q,IzJg?!%h!"><field name="OP">EQ</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="$MLMV,mp^p8BOtT9}I.j"><field name="VAR" id="a.bYUFJ[E*4ki3w=)^lR">mode</field></block></value><value name="B"><shadow type="math_number" id="{,aMpUNzhhBUB`2!wWN3"><field name="NUM">0</field></shadow></value></block></value><statement name="DO0"><block type="function_call" id="#Pjaw2@X`(1Sz+f0_/C0"><mutation name="scrollmenu" functionid="Y0@@k@o`7T{KOg_3pWWg"><arg name="direction" id="wcM.yzz2O1wvzpcj(jqH" type="number"/></mutation><value name="wcM.yzz2O1wvzpcj(jqH"><shadow type="math_number" id="Foy}$`A1XZSa90=.`,Of"><field name="NUM">-1</field></shadow></value></block></statement><value name="IF1"><block type="logic_compare" id="1ggjT@QxdGIXK1#D4gcZ"><field name="OP">EQ</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="n;~$Bx1c8B`Jxr$n2=!e"><field name="VAR" id="s,SSvH%=0.;af2mQi^)q">Auswahl</field></block></value><value name="B"><shadow type="math_number" id="GxCW/j3Dj|oG2vYyWC+)"><field name="NUM">1</field></shadow></value></block></value><statement name="DO1"><block type="basic_show_icon" id="swX9SKoSBDU4.b3=P/Wv"><field name="i">IconNames.Angry</field><next><block type="device_pause" id="LZ$^[g5MU+|!S662}x$?"><value name="pause"><shadow type="timePicker" id="`%ZlnV.-~3e:muWHI9pk"><field name="ms">100</field></shadow></value><next><block type="device_clear_display" id="ys(goS7rzLykfBC2e}97"/></next></block></next></block></statement><value name="IF2"><block type="logic_compare" id="|MUt=m8yC;L?eEd2x3?N"><field name="OP">EQ</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="lxI@F5UZo9hw0F{z%^30"><field name="VAR" id="s,SSvH%=0.;af2mQi^)q">Auswahl</field></block></value><value name="B"><shadow type="math_number" id="o6KlCEu]98~`h4^^{m5K"><field name="NUM">2</field></shadow></value></block></value><statement name="DO2"><block type="device_show_leds" id="5KdHJioZDU;xTT]|X!^q"><field name="LEDS">`
# # # # #
. # . # .
# . . . #
# # # # #
. # # # .
`</field><next><block type="device_pause" id="/mpi-]q96el:NLiK{]%D"><value name="pause"><shadow type="timePicker" id="wIO-RJ~pOf`oVDd4:XNV"><field name="ms">100</field></shadow></value><next><block type="device_clear_display" id="aVKS+MleOR:tw*-}Yj4u"/></next></block></next></block></statement><value name="IF3"><block type="logic_compare" id="~[2gpyVF:;AyWZ5vk_p-"><field name="OP">EQ</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id=",O4Zlr$9xx4!WF{WGt6|"><field name="VAR" id="s,SSvH%=0.;af2mQi^)q">Auswahl</field></block></value><value name="B"><shadow type="math_number" id="Yp:Mp4oI}g/BV+Qc0b{H"><field name="NUM">3</field></shadow></value></block></value><statement name="DO3"><block type="basic_show_icon" id="p3;u{:UJT$ZakPkAv@!?"><field name="i">IconNames.Happy</field><next><block type="device_pause" id="Not-Y1%vW}#J6F~a{fhR"><value name="pause"><shadow type="timePicker" id="qn[nR8Z~V%9eyB~:(F-J"><field name="ms">100</field></shadow></value><next><block type="device_clear_display" id="Dj`CP8h2dZKQB3v_Y-zw"/></next></block></next></block></statement><statement name="ELSE"><block type="device_show_leds" id="p0%4c!E-/.U8|K7g/a^o"><field name="LEDS">`
. # # . .
. . . # .
. . # . .
. . . . .
. . # . .
`</field></block></statement></block></statement></block><block type="function_definition" id="e,5l(kJrj)]W@KgN~8ed" x="627" y="25"><mutation name="scrollmenu" functionid="Y0@@k@o`7T{KOg_3pWWg"><arg name="direction" id="wcM.yzz2O1wvzpcj(jqH" type="number"/></mutation><field name="function_name">scrollmenu</field><statement name="STACK"><block type="variables_change" id="Ky5hM%krBfSN~cJJb/|2"><field name="VAR" id="s,SSvH%=0.;af2mQi^)q">Auswahl</field><value name="VALUE"><shadow type="math_number" id="I{Vzqn]P@:=D(`VnZA]y"><field name="NUM">-1</field></shadow></value><next><block type="controls_if" id="LNC:nN0~nb]s4qkX{d@R"><mutation elseif="1"/><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="C*GU%vh_|8@~lntAl`P)"><field name="OP">LT</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="sxBr_/m:9qeC|MEL.ZtJ"><field name="VAR" id="s,SSvH%=0.;af2mQi^)q">Auswahl</field></block></value><value name="B"><shadow type="math_number" id="~)@6E~s7_5,6thn6/)3b"><field name="NUM">0</field></shadow></value></block></value><statement name="DO0"><block type="variables_change" id="(V@aa!+qM)OX:n.2C+^e"><field name="VAR" id="s,SSvH%=0.;af2mQi^)q">Auswahl</field><value name="VALUE"><shadow type="math_number"><field name="NUM">1</field></shadow><block type="lists_length" id="lF~)1{%p]mH`~ST[fknv"><value name="VALUE"><block type="variables_get" id="vHUSIC}=as.Ew]hCq0{+"><field name="VAR" id="k5CAGF(is9D601G8]G)@">Rollen</field></block></value></block></value></block></statement><value name="IF1"><block type="logic_compare" id="{f--;Ia/k*3E:Z~W6icp"><field name="OP">GTE</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="iZ:EAvqVh~uk,.,G:8=V"><field name="VAR" id="s,SSvH%=0.;af2mQi^)q">Auswahl</field></block></value><value name="B"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="lists_length" id="jJg;j0;A)JZ}VJwTG}TN"><value name="VALUE"><block type="variables_get" id="pcGsT!Ww.YbPwTs/QvAr"><field name="VAR" id="k5CAGF(is9D601G8]G)@">Rollen</field></block></value></block></value></block></value><statement name="DO1"><block type="variables_set" id="JJLoo]*7#dyb1NHewiWW"><field name="VAR" id="s,SSvH%=0.;af2mQi^)q">Auswahl</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="math_arithmetic" id="NQS:9YRwCw:hpg,E2nNK"><field name="OP">MINUS</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="4~L68KH/tDo^YxcpHomP"><field name="VAR" id="s,SSvH%=0.;af2mQi^)q">Auswahl</field></block></value><value name="B"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="lists_length" id="lmQiOGs/t=zTNW*dq{3T"><value name="VALUE"><block type="variables_get" id=",/VcWmQF9O/IHZVMEIWH"><field name="VAR" id="k5CAGF(is9D601G8]G)@">Rollen</field></block></value></block></value></block></value></block></statement><next><block type="device_print_message" id=".{0WP$)weTY7:ES@V4+F"><value name="text"><shadow type="text"><field name="TEXT">Hello!</field></shadow><block type="lists_index_get" id="kcCb$4F5$,==-el/1aLu"><value name="LIST"><block type="variables_get" id="jNB_oJJ:{5pzK#xRxLPO"><field name="VAR" id="k5CAGF(is9D601G8]G)@">Rollen</field></block></value><value name="INDEX"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="`iNz|46{BH/VA(w@R-j."><field name="VAR" id="s,SSvH%=0.;af2mQi^)q">Auswahl</field></block></value></block></value></block></next></block></next></block></statement></block><block type="device_button_event" id=".+68(C[Zn}$o(Ob~-=`(" x="-498" y="503"><field name="NAME">Button.B</field><statement name="HANDLER"><block type="controls_if" id="OFU^47dS^Ph%PN1kk%?8"><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="Km@%Y~+f_9gea[qxOtYx"><field name="OP">EQ</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="O6S2F~1iW-362e4Qwu/y"><field name="VAR" id="a.bYUFJ[E*4ki3w=)^lR">mode</field></block></value><value name="B"><shadow type="math_number" id="Cbi0~*k%NZ(o?Br!SP+}"><field name="NUM">0</field></shadow></value></block></value><statement name="DO0"><block type="function_call" id="0|NNV6JF9D;_1CfoALKU"><mutation name="scrollmenu" functionid="Y0@@k@o`7T{KOg_3pWWg"><arg name="direction" id="wcM.yzz2O1wvzpcj(jqH" type="number"/></mutation><value name="wcM.yzz2O1wvzpcj(jqH"><shadow type="math_number" id="B`1V,x^%3,/OL|FxDV)P"><field name="NUM">1</field></shadow></value></block></statement></block></statement></block><block type="radio_on_value_drag" id="r;)@-!1GDqrgB;GII#(*" x="621" y="622"><value name="HANDLER_DRAG_PARAM_name"><shadow type="argument_reporter_string" id="?t7KqL;BSp95]bIJCR@f"><field name="VALUE">name</field></shadow></value><value name="HANDLER_DRAG_PARAM_value"><shadow type="argument_reporter_number" id="vz*v40JVl;idP}{{E||x"><field name="VALUE">value</field></shadow></value><statement name="HANDLER"><block type="basic_show_icon" id="Kbl##mWp|?^HmQ7@}ouG"><field name="i">IconNames.No</field></block></statement></block><block type="device_button_event" id="UHZ?)A-oE$e7.H:7d^O0" x="-533" y="888"><field name="NAME">Button.AB</field><statement name="HANDLER"><block type="controls_if" id="EA})/Il{sT$nxYm,$X*G"><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="_B0-DVwIJl|s_7c*io}x"><field name="OP">NEQ</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="pZWZMW~7:Yp+@oE=l]pp"><field name="VAR" id="s,SSvH%=0.;af2mQi^)q">Auswahl</field></block></value><value name="B"><shadow type="math_number" id="tw2EZ]Lkkf{DO(Pa=Ntd"><field name="NUM">0</field></shadow></value></block></value><statement name="DO0"><block type="variables_set" id="3^Ij=C3G]7UVevJ]s5LT"><field name="VAR" id="a.bYUFJ[E*4ki3w=)^lR">mode</field><value name="VALUE"><shadow type="math_number"><field name="NUM">1</field></shadow><block type="variables_get" id="zLKuQ;h(@{:[dYI]*l0l"><field name="VAR" id="s,SSvH%=0.;af2mQi^)q">Auswahl</field></block></value><next><block type="basic_show_icon" id="1!-nA|?W.XzAEz8E7;Xl"><field name="i">IconNames.Heart</field></block></next></block></statement></block></statement></block></xml>