-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.blocks
1 lines (1 loc) · 19.1 KB
/
main.blocks
1
<xml xmlns="https://developers.google.com/blockly/xml"><variables><variable id="n3(ZHUGsCKW5ix[ZJ?K3">vl</variable><variable id="_vuW;#Ux^CZH+9)QK`s;">vr</variable></variables><block type="device_forever" id="C_[?doheKK?[WK_B/,s%" x="0" y="32"><statement name="HANDLER"><block type="serial_writevalue" id="#FP/h]@-jr4SZoHwe.nZ"><value name="name"><shadow type="text" id="$DSbV:%//Fo(u!84QH(D"><field name="TEXT">vr</field></shadow></value><value name="value"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="@tz_#C%sZ{INdAwG3lZ."><field name="VAR" id="_vuW;#Ux^CZH+9)QK`s;">vr</field></block></value><next><block type="serial_writevalue" id="vSsU@Wirc,rJY580s*RE"><value name="name"><shadow type="text" id="A%yDMdPwKyhwM5!}jjcP"><field name="TEXT">vl</field></shadow></value><value name="value"><shadow type="math_number" id="UVVLqe5)agQ1Bon*3CT5"><field name="NUM">0</field></shadow><block type="variables_get" id="B!cy;06-*ZxsrK|fovwa"><field name="VAR" id="n3(ZHUGsCKW5ix[ZJ?K3">vl</field></block></value><next><block type="function_call" id="Dk=JT:G+-@|UtAfH8O;S"><mutation name="schreibeGeschwindigkeit" functionid="}8ny;S!6a_.8p3U=W,sa"/></block></next></block></next></block></statement></block><block type="pxt-on-start" id="$YT^TiAmTNHR$D#|E5u9" x="625" y="7"><statement name="HANDLER"><block type="function_call" id=")}iTx!Lg[c:FN*0vbUcD"><mutation name="stop" functionid="-1Pyq$nGl/p.eogu@26K"/><next><block type="device_show_leds" id="D}b8JQGHS_KZ`{#eJ0dL"><field name="LEDS">` . . . . . . . . . . . . # . . . . . . . . . . . . `</field><next><block type="radio_set_group" id="Rqwhh2=+{.y:.3m[xoWb"><value name="ID"><shadow type="math_number_minmax" id="]Ua3pJ_5BTP]}*VU5hrR"><mutation min="0" max="255" label="Id" precision="0"/><field name="SLIDER">1</field></shadow></value><next><block type="variables_set" id="F}/7Rc}rM(rUzY(MDWYj"><field name="VAR" id="_vuW;#Ux^CZH+9)QK`s;">vr</field><value name="VALUE"><shadow type="math_number" id="X0mC_C~np3%;-ky8$Z1x"><field name="NUM">703</field></shadow></value><next><block type="variables_set" id="rNMUZS!?wZ0;=q^|jEnl"><field name="VAR" id="n3(ZHUGsCKW5ix[ZJ?K3">vl</field><value name="VALUE"><shadow type="math_number" id="rV[?0@++L_uZ.|t,{.H_"><field name="NUM">703</field></shadow></value></block></next></block></next></block></next></block></next></block></statement></block><block type="device_button_event" id="/4D$:VhCM6vpcHP,TjdI" x="890" y="0"><field name="NAME">Button.A</field><statement name="HANDLER"><block type="function_call" id="DyVWpBJoh_zvYepZ5sF_"><mutation name="langsamer" functionid="EGBz4NhgKc)Qgr8aGJrS"/></block></statement></block><block type="radio_on_string_drag" id="P]SnWZh=S!^750]%feFL" x="1211" y="12"><value name="HANDLER_DRAG_PARAM_receivedString"><shadow type="argument_reporter_string" id="wxu?;lPxIhO.VOf)xg@9"><field name="VALUE">receivedString</field></shadow></value><statement name="HANDLER"><block type="controls_if" id="bgjepYWqOKbbWX#|D([E"><mutation elseif="3"/><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="QRtZJr/|a.%)!dyj0YTb"><field name="OP">EQ</field><value name="A"><shadow type="text"><field name="TEXT"/></shadow><block type="argument_reporter_string" id="DtpQMJ$O=O-mRS)^sJQR"><field name="VALUE">receivedString</field></block></value><value name="B"><shadow type="text" id="FQ*8hf6(6X_/Edsa#-O+"><field name="TEXT">schneller</field></shadow></value></block></value><statement name="DO0"><block type="function_call" id="vX/PMT2%v|`88Qti33=="><mutation name="schneller" functionid="YwDqwgE0}G.6D2Xe~Yub"/></block></statement><value name="IF1"><block type="logic_compare" id="4YoXPU5jxt!f`b._3$R%"><field name="OP">EQ</field><value name="A"><shadow type="text"><field name="TEXT"/></shadow><block type="argument_reporter_string" id=";O~9Vvg}[44W)v8BZ*D;"><field name="VALUE">receivedString</field></block></value><value name="B"><shadow type="text" id="v1wx$1/YlxYum;KKO%pp"><field name="TEXT">zurück</field></shadow></value></block></value><statement name="DO1"><block type="function_call" id="*+^cPF^BSraxT~$fPzIL"><mutation name="zurück" functionid="nC]k-@`{pS$mlGo;`_yH"/></block></statement><value name="IF2"><block type="logic_compare" id="B;seB3wv!#fa^1Es6y|4"><field name="OP">EQ</field><value name="A"><shadow type="text"><field name="TEXT"/></shadow><block type="argument_reporter_string" id="~s=[W~#960/9]=B81[.e"><field name="VALUE">receivedString</field></block></value><value name="B"><shadow type="text" id="h}yT[7QlgE+YaV7%T7ZP"><field name="TEXT">stop</field></shadow></value></block></value><statement name="DO2"><block type="function_call" id="^VTPJ(ja%=$voJe^sq(T"><mutation name="stop" functionid="-1Pyq$nGl/p.eogu@26K"/></block></statement><value name="IF3"><block type="logic_compare" id="4qPs7%E18BbgN0hq]d^3"><field name="OP">EQ</field><value name="A"><shadow type="text"><field name="TEXT"/></shadow><block type="argument_reporter_string" id="tC=(,/vd)F0Ff*1He}K]"><field name="VALUE">receivedString</field></block></value><value name="B"><shadow type="text" id="H~DxtcpV0_SI^}(pR9`7"><field name="TEXT">langsamer</field></shadow></value></block></value><statement name="DO3"><block type="function_call" id=":x(R-KVI+B)rtPdeoBl+"><mutation name="langsamer" functionid="EGBz4NhgKc)Qgr8aGJrS"/></block></statement></block></statement></block><block type="device_button_event" id="7~.^bQm[:~|()J9~m:[!" x="887" y="152"><field name="NAME">Button.B</field><statement name="HANDLER"><block type="function_call" id="3iEqA_7`o,WlUD-Ir4e7"><mutation name="schneller" functionid="YwDqwgE0}G.6D2Xe~Yub"/></block></statement></block><block type="function_definition" id="Ol4eGxD-u!MO?[TARJi+" x="8" y="290"><mutation name="schreibeGeschwindigkeit" functionid="}8ny;S!6a_.8p3U=W,sa"/><field name="function_name">schreibeGeschwindigkeit</field><statement name="STACK"><block type="device_set_analog_pin" id="gorB6p|l6-@Yg(%f[|FU"><field name="name">AnalogPin.P14</field><value name="value"><shadow type="math_number_minmax" id="3k.]jbePOn#FV;jAF8)m"><mutation min="0" max="1023" label="Value" precision="0"/><field name="SLIDER">384</field></shadow><block type="variables_get" id="OYVX5W,(W{QXJo,tNJ$}"><field name="VAR" id="_vuW;#Ux^CZH+9)QK`s;">vr</field></block></value><next><block type="device_set_analog_pin" id="0vM#+3$_w]F%4}8.@i.-"><field name="name">AnalogPin.P13</field><value name="value"><shadow type="math_number_minmax" id="#l`0OKGAI36Na?(pDP{8"><mutation min="0" max="1023" label="Value" precision="0"/><field name="SLIDER">384</field></shadow><block type="variables_get" id="3ayZ(eW~L-PC*LD4h)qU"><field name="VAR" id="n3(ZHUGsCKW5ix[ZJ?K3">vl</field></block></value></block></next></block></statement></block><block type="input_logo_event" id="tQkB?T,(tKR^1v.$Ls[0" x="892" y="290"><field name="action">TouchButtonEvent.Pressed</field><statement name="HANDLER"><block type="function_call" id="kIG!p5(#Mo[vmznkPu_k"><mutation name="stop" functionid="-1Pyq$nGl/p.eogu@26K"/></block></statement></block><block type="device_button_event" id="l{`=Lui,.Yx0kV1djNJ/" x="893" y="430"><field name="NAME">Button.AB</field><statement name="HANDLER"><block type="function_call" id="FrVF!yV/HqDuOH9h12r9"><mutation name="zurück" functionid="nC]k-@`{pS$mlGo;`_yH"/></block></statement></block><block type="function_definition" id="C+ou$Ze/mN|1sz]hqe(k" x="27" y="557"><mutation name="stop" functionid="-1Pyq$nGl/p.eogu@26K"/><field name="function_name">stop</field><statement name="STACK"><block type="device_set_digital_pin" id="2g1E86D-3dVQ$%T)D@{~"><field name="name">DigitalPin.P0</field><value name="value"><shadow type="math_number_minmax" id="MbdM;tbGRA(Boa4nOD^}"><mutation min="0" max="1" label="Value" precision="0"/><field name="SLIDER">0</field></shadow></value><next><block type="device_set_digital_pin" id="=p=iA74$:[7cFZ18ZJuB"><field name="name">DigitalPin.P1</field><value name="value"><shadow type="math_number_minmax" id="/J}8*N~=np!kFc..Lp~5"><mutation min="0" max="1" label="Value" precision="0"/><field name="SLIDER">0</field></shadow></value><next><block type="device_set_digital_pin" id="!hn*q$?W2)Tn.a%03#7#"><field name="name">DigitalPin.P8</field><value name="value"><shadow type="math_number_minmax" id="2g]x,K$Z_S)}OPRc1W74"><mutation min="0" max="1" label="Value" precision="0"/><field name="SLIDER">1</field></shadow></value><next><block type="device_set_digital_pin" id="f5]ZL3F?eR:/wAC@~D#I"><field name="name">DigitalPin.P12</field><value name="value"><shadow type="math_number_minmax" id="gbJ*(9e@hJ@6H)El^[(L"><mutation min="0" max="1" label="Value" precision="0"/><field name="SLIDER">1</field></shadow></value><next><block type="device_show_leds" id="eB-LFU.NGwlTQka{TbSd"><field name="LEDS">` . . . . . . . . . . . . # . . . . . . . . . . . . `</field></block></next></block></next></block></next></block></next></block></statement></block><block type="function_definition" id="O1B5@nJ}v4psVn9sg]Sq" x="515" y="562"><mutation name="vor" functionid="bo6e5t}r0;s*~qPJftBT"/><field name="function_name">vor</field><statement name="STACK"><block type="device_set_digital_pin" id="(U+.D;l16.~y]m*=deXz"><field name="name">DigitalPin.P0</field><value name="value"><shadow type="math_number_minmax" id="r(ydS):2HzL!oJ$$fQD0"><mutation min="0" max="1" label="Value" precision="0"/><field name="SLIDER">1</field></shadow></value><next><block type="device_set_digital_pin" id="r]D5M=h4JYQoP2Js7Tfy"><field name="name">DigitalPin.P1</field><value name="value"><shadow type="math_number_minmax" id="9]{j/KCndw4|mfOor8h4"><mutation min="0" max="1" label="Value" precision="0"/><field name="SLIDER">0</field></shadow></value><next><block type="device_set_digital_pin" id="84m_1-_Y`-ToUN(WG42G"><field name="name">DigitalPin.P8</field><value name="value"><shadow type="math_number_minmax" id="%;a7fZpf!OGv$;73Ut!j"><mutation min="0" max="1" label="Value" precision="0"/><field name="SLIDER">0</field></shadow></value><next><block type="device_set_digital_pin" id="2j08Ju};;;P2RToJ*.wR"><field name="name">DigitalPin.P12</field><value name="value"><shadow type="math_number_minmax" id="**!|mjEb)_mp?kY?~E-3"><mutation min="0" max="1" label="Value" precision="0"/><field name="SLIDER">1</field></shadow></value><next><block type="device_show_leds" id="KjqBxC^0~a^l[OC(}nlH"><field name="LEDS">` . . # . . . # # # . # . # . # . . # . . . . # . . `</field></block></next></block></next></block></next></block></next></block></statement></block><block type="function_definition" id="vFr.YpIIQcRkKjTwML7g" x="1006" y="581"><mutation name="zurück" functionid="nC]k-@`{pS$mlGo;`_yH"/><field name="function_name">zurück</field><statement name="STACK"><block type="device_set_digital_pin" id="ywXHLZDT7oHrx[%M(ccr"><field name="name">DigitalPin.P0</field><value name="value"><shadow type="math_number_minmax" id=".=5q@#x9yvaqb}x0]$ag"><mutation min="0" max="1" label="Value" precision="0"/><field name="SLIDER">0</field></shadow></value><next><block type="device_set_digital_pin" id="JeAl:18I+{{#}UTi8}dl"><field name="name">DigitalPin.P1</field><value name="value"><shadow type="math_number_minmax" id="Qb8;GZy%EF}3C(n$#3YY"><mutation min="0" max="1" label="Value" precision="0"/><field name="SLIDER">1</field></shadow></value><next><block type="device_set_digital_pin" id="rlpznqa#jXR/0@kUthaL"><field name="name">DigitalPin.P8</field><value name="value"><shadow type="math_number_minmax" id="Ku3LHP#|[Tdly/?yma-6"><mutation min="0" max="1" label="Value" precision="0"/><field name="SLIDER">1</field></shadow></value><next><block type="device_set_digital_pin" id="H}J]M~^+T:l)~zh[|am#"><field name="name">DigitalPin.P12</field><value name="value"><shadow type="math_number_minmax" id="fF7OrxiNR$Wb$C8ian}d"><mutation min="0" max="1" label="Value" precision="0"/><field name="SLIDER">0</field></shadow></value><next><block type="device_show_leds" id="q[1d-}^cY]FSpCK[:?R4"><field name="LEDS">` . . # . . . . # . . # . # . # . # # # . . . # . . `</field></block></next></block></next></block></next></block></next></block></statement></block><block type="radio_on_number_drag" id="gYxRw.snxaf/JN@]|]?Q" x="1298" y="924"><value name="HANDLER_DRAG_PARAM_receivedNumber"><shadow type="argument_reporter_number" id="XD*yD[y-!p.4!v]N;-Zw"><field name="VALUE">receivedNumber</field></shadow></value><statement name="HANDLER"><block type="serial_writevalue" id="m-1:UuahWHR=YI:U,Mw1"><value name="name"><shadow type="text" id="l1T9]U|IE!`YJ5mTN@rU"><field name="TEXT">r</field></shadow></value><value name="value"><shadow type="math_number" id="fVPL/H}{)cvYHHMYgu8q"><field name="NUM">0</field></shadow><block type="argument_reporter_number" id="4pH:5;Lxk!8GyD+Kk9NE"><field name="VALUE">receivedNumber</field></block></value><next><block type="variables_set" id="O0cLC[Rk^)wzCsVi%qPi"><field name="VAR" id="_vuW;#Ux^CZH+9)QK`s;">vr</field><value name="VALUE"><shadow type="math_number" id="SjykjoC$@qcRj8Ao4#7t"><field name="NUM">0</field></shadow><block type="math_map" id="WZtrAVfmld$A/3^GQ_nb"><value name="value"><shadow type="math_number" id="Zw+6/3F^6ob+JCY?O1K}"><field name="NUM">0</field></shadow><block type="argument_reporter_number" id="!77eIM;xj1tFej]V1oMi"><field name="VALUE">receivedNumber</field></block></value><value name="fromLow"><shadow type="math_number" id=":_!Erxy%8syr~D}0O$lv"><field name="NUM">-45</field></shadow></value><value name="fromHigh"><shadow type="math_number" id=")Jcy[7|dHN#oQu.!W9wo"><field name="NUM">45</field></shadow></value><value name="toLow"><shadow type="math_number" id="LL[ECP5.G.?Gm/mShQW,"><field name="NUM">383</field></shadow></value><value name="toHigh"><shadow type="math_number" id="^LLsu;AG.zfY$B#,8/X%"><field name="NUM">1023</field></shadow></value></block></value><next><block type="variables_set" id="a`PXoFNd((PH^Y14Bw58"><field name="VAR" id="n3(ZHUGsCKW5ix[ZJ?K3">vl</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="math_map" id="Uk9%K!z,$:vz-yS|u-5Q"><value name="value"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="math_arithmetic" id="PRa!ub9;wUD$vOop,E3V"><field name="OP">MULTIPLY</field><value name="A"><shadow type="math_number" id="ay-bg~Uc[9KBM)bv8NW,"><field name="NUM">-1</field></shadow></value><value name="B"><shadow type="math_number" id=")tbQj^3Oh|IYFTREh5@~"><field name="NUM">0</field></shadow><block type="argument_reporter_number" id="{sPi`p:eRd2Y1O4RC|3g"><field name="VALUE">receivedNumber</field></block></value></block></value><value name="fromLow"><shadow type="math_number" id="%?`|#h)8h)NYreK9wG6L"><field name="NUM">-45</field></shadow></value><value name="fromHigh"><shadow type="math_number" id="~`oz-l8Y|Q6ZPmpm{Yc}"><field name="NUM">45</field></shadow></value><value name="toLow"><shadow type="math_number" id="E,5|ODc|Yi7?zXav_=4?"><field name="NUM">383</field></shadow></value><value name="toHigh"><shadow type="math_number" id="*-K8;hbRZTUX6%k6xarQ"><field name="NUM">1023</field></shadow></value></block></value></block></next></block></next></block></statement></block><block type="function_definition" id="9t=5yw[4Wb2{jLP+dH7l" x="214" y="1134"><mutation name="langsamer" functionid="EGBz4NhgKc)Qgr8aGJrS"/><field name="function_name">langsamer</field><statement name="STACK"><block type="controls_if" id="8GI^2JhBT7n5?4Xg~9n|"><mutation else="1"/><value name="IF0"><shadow type="logic_boolean" id="L:YRz)7Yukk7Y@0afP7*"><field name="BOOL">TRUE</field></shadow><block type="logic_operation" id="Ay,Do]o_[`:Mhsvxy]n3"><field name="OP">OR</field><value name="A"><block type="logic_compare" id="+rA-gSuH.|BL}A*+q@]0"><field name="OP">LT</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="Hz_Rkl1V2Oxf8~^A:d$R"><field name="VAR" id="_vuW;#Ux^CZH+9)QK`s;">vr</field></block></value><value name="B"><shadow type="math_number" id="g[4C_j~[Uo(RgKemsJv`"><field name="NUM">383</field></shadow></value></block></value><value name="B"><block type="logic_compare" id="`,XpPmO[tGg@XscqHu{H"><field name="OP">LT</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="roE?752=`sqa(zU(MiY0"><field name="VAR" id="n3(ZHUGsCKW5ix[ZJ?K3">vl</field></block></value><value name="B"><shadow type="math_number" id="%ul5X{.Mxzvo50KM|DV!"><field name="NUM">383</field></shadow></value></block></value></block></value><statement name="DO0"><block type="function_call" id="16xq^sQNtg[oX6UGwGrO"><mutation name="stop" functionid="-1Pyq$nGl/p.eogu@26K"/></block></statement><statement name="ELSE"><block type="variables_change" id="b(jn,Im,_Nj?zVyZ}L@]"><field name="VAR" id="_vuW;#Ux^CZH+9)QK`s;">vr</field><value name="VALUE"><shadow type="math_number" id="tl}i:qwN(x2q_63af~TF"><field name="NUM">-128</field></shadow></value><next><block type="variables_change" id="m[kCY?l=tXPj8[jH?0p."><field name="VAR" id="n3(ZHUGsCKW5ix[ZJ?K3">vl</field><value name="VALUE"><shadow type="math_number" id=")+b*)zBvqn2+`Kz#N}lp"><field name="NUM">-128</field></shadow></value></block></next></block></statement></block></statement></block><block type="function_definition" id="vnq:O0av@zWbL2p#O*z8" x="933" y="1169"><mutation name="schneller" functionid="YwDqwgE0}G.6D2Xe~Yub"/><field name="function_name">schneller</field><statement name="STACK"><block type="function_call" id="yMj-:[x6?=i@+m^?83hq"><mutation name="vor" functionid="bo6e5t}r0;s*~qPJftBT"/><next><block type="controls_if" id="Cx4ZNv`O!.1Y^}Uw6lJT"><value name="IF0"><shadow type="logic_boolean" id="NI`}]b?,5Lkr_@5i|+0p"><field name="BOOL">TRUE</field></shadow><block type="logic_operation" id="AVG[}H6AATLe|_pjTb0$"><field name="OP">AND</field><value name="A"><block type="logic_compare" id="Jq`oSMCWs1M,Qu))9%3$"><field name="OP">LT</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="NnmTfB]|n720o|pMEf5S"><field name="VAR" id="_vuW;#Ux^CZH+9)QK`s;">vr</field></block></value><value name="B"><shadow type="math_number" id="m|rzBR9pf~E1!2+z|+kR"><field name="NUM">1023</field></shadow></value></block></value><value name="B"><block type="logic_compare" id="(IHQ@LDrl#!~?/A+h9G+"><field name="OP">LT</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="g/|ICqVh0N}gr]Vupn,7"><field name="VAR" id="n3(ZHUGsCKW5ix[ZJ?K3">vl</field></block></value><value name="B"><shadow type="math_number" id="Ex|a+dK0rG/mLEM@ZSiy"><field name="NUM">1023</field></shadow></value></block></value></block></value><statement name="DO0"><block type="variables_change" id="2d%07/2Zif2T@Hrs_}+F"><field name="VAR" id="_vuW;#Ux^CZH+9)QK`s;">vr</field><value name="VALUE"><shadow type="math_number" id="xs8i?Awvmve(]}3$EjOJ"><field name="NUM">128</field></shadow></value><next><block type="variables_change" id="q5?@+Nkf8=zQz1A@Ghnr"><field name="VAR" id="n3(ZHUGsCKW5ix[ZJ?K3">vl</field><value name="VALUE"><shadow type="math_number" id="DM__#$=k4@Vbq(_2xP,H"><field name="NUM">128</field></shadow></value></block></next></block></statement></block></next></block></statement></block></xml>