Repository navigation
Expand file tree
/
Copy pathmain.blocks
More file actions
1 lines (1 loc) · 11.9 KB
/
Copy pathmain.blocks
File metadata and controls
1 lines (1 loc) · 11.9 KB
1
<xml xmlns="https://developers.google.com/blockly/xml"><variables><variable id="a**fJeJoR-LO,y6.OHFF">speed</variable></variables><block type="pxt-on-start" id="d_IK-=xXsUi;V4IJ2lFP" deletable="false" x="0" y="0"><statement name="HANDLER"><block type="function_call" id="yqA^V)jOG[/0DZv(H+$r" deletable="false"><mutation name="stopp" functionid="ESQ,5;K?tk/x|NrQ:gD?"></mutation><next><block type="variables_set" id="Q;PHIFmc!Zku1%{tt,K;" deletable="false"><field name="VAR" id="a**fJeJoR-LO,y6.OHFF">speed</field><value name="VALUE"><shadow type="math_number" id="z5Q`5cl-j|7}I*abyJdQ"><field name="NUM">1</field></shadow></value><next><block type="radio_set_group" id=")kAYrVo$!X@zd^4h=8cl" deletable="false"><value name="ID"><shadow type="math_number_minmax" id="[A0nlvS^{mOYC(@YuN^%"><mutation min="0" max="255" label="Id" precision="0"></mutation><field name="SLIDER">5</field></shadow></value><next><block type="radio_set_transmit_power" id="NBtuD?}-nDSr#+_L%ddp" deletable="false"><value name="power"><shadow type="math_number_minmax" id="){yEGs/NF~(Kh4]heyy%"><mutation min="0" max="7" label="Power" precision="0"></mutation><field name="SLIDER">7</field></shadow></value></block></next></block></next></block></next></block></statement></block><block type="device_forever" id="Vc^9%*~r6.4.bS@z1G:}" deletable="false" x="-4" y="301"><statement name="HANDLER"><block type="controls_if" id="L0AzyBj.zTk|!yZn|t@p" deletable="false"><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="input_logo_is_pressed" id="l,$tUSA-n|s(2pQlo5d(" deletable="false"></block></value><statement name="DO0"><block type="variables_set" id=")yk5W33F*wL1q}?T!LN(" deletable="false"><field name="VAR" id="a**fJeJoR-LO,y6.OHFF">speed</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="math_arithmetic" id=".ZsrD;:Y:nWJ`Ympdd95" deletable="false"><field name="OP">MULTIPLY</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="Rc,@ZeloFYyT7gN`h+9/" deletable="false"><field name="VAR" id="a**fJeJoR-LO,y6.OHFF">speed</field></block></value><value name="B"><shadow type="math_number" id="2hjN+l4GrbEOyCpOJOji"><field name="NUM">-1</field></shadow></value></block></value><next><block type="radio_datagram_send" id="(7iT-VXYoLh#YIc-FQ.4" deletable="false"><value name="value"><shadow type="math_number"><field name="NUM">3</field></shadow><block type="variables_get" id="2Fpm|zZ_%-TRN_@6dMJp" deletable="false"><field name="VAR" id="a**fJeJoR-LO,y6.OHFF">speed</field></block></value><next><block type="device_while" id="!uTP]U*kE#=JopL:;C1l" deletable="false"><value name="COND"><shadow type="logic_boolean"><field name="BOOL">FALSE</field></shadow><block type="input_logo_is_pressed" id="urv`+zU#c!mcN`Dmrk]@" deletable="false"></block></value><statement name="DO"><block type="device_pause" id="0qcq;;jHl@1WM2U7kf]v" deletable="false"><value name="pause"><shadow type="timePicker" id="GQ~!O,~$HnDx2)AlL/2`"><field name="ms">10</field></shadow></value><next><block type="device_plot" id="f4!J?G;r!v%kYZ@j*+b%"><value name="x"><shadow type="math_number_minmax" id="Kbch@L.__R]T$#vG^Cs3"><mutation min="0" max="4" label="X" precision="1"></mutation><field name="SLIDER">2</field></shadow></value><value name="y"><shadow type="math_number_minmax" id="Z![%`1{aVk6bb0*b,u@R"><mutation min="0" max="4" label="Y" precision="1"></mutation><field name="SLIDER">0</field></shadow></value></block></next></block></statement></block></next></block></next></block></statement><next><block type="controls_if" id="Sy?9Wc^4,~_5Jg]]mdKj" deletable="false"><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="8//@KC(YSF4gW|x%fx`k" deletable="false"><field name="OP">EQ</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="9xqg#`wA4H|2Z!wXoPb[" deletable="false"><field name="VAR" id="a**fJeJoR-LO,y6.OHFF">speed</field></block></value><value name="B"><shadow type="math_number" id="8^)|3i%(!Qu{q2h;)f1="><field name="NUM">-1</field></shadow></value></block></value><statement name="DO0"><block type="soundExpression_playSoundEffect" id="2!}q[|iH`od=X5V(.u0*" deletable="false"><field name="mode">SoundExpressionPlayMode.InBackground</field><value name="sound"><shadow type="soundExpression_createSoundEffect" id="XrvV%qUBxy)2Z3#M25h+" inline="true"><mutation xmlns="http://www.w3.org/1999/xhtml" _expanded="0" _input_init="true"></mutation><field name="waveShape">WaveShape.Sine</field><field name="effect">SoundExpressionEffect.None</field><field name="interpolation">InterpolationCurve.Curve</field><data>{"commentRefs":[],"fieldData":{"waveShape":"{\"duration\":500,\"startFrequency\":1651.9926958946812,\"endFrequency\":1651.9926958946812,\"startVolume\":255,\"endVolume\":0,\"wave\":\"sine\",\"interpolation\":\"curve\",\"effect\":\"none\"}"}}</data><value name="startFrequency"><shadow type="math_number_minmax" id="@UN~CN0H4/3$$0:I+@iZ"><mutation min="0" max="5000" label="StartFrequency" precision="0"></mutation><field name="SLIDER">1652</field></shadow></value><value name="endFrequency"><shadow type="math_number_minmax" id="6Zw(;aB6wzSmE~jwDAj{"><mutation min="0" max="5000" label="EndFrequency" precision="0"></mutation><field name="SLIDER">1652</field></shadow></value><value name="duration"><shadow type="math_number_minmax" id="w(R=dl~3JsSxrXj)$)hf"><mutation min="1" max="9999" label="Duration" precision="0"></mutation><field name="SLIDER">500</field></shadow></value><value name="startVolume"><shadow type="math_number_minmax" id="E$r5#!O_v+ZsK_QR8at;"><mutation min="0" max="255" label="StartVolume" precision="0"></mutation><field name="SLIDER">255</field></shadow></value><value name="endVolume"><shadow type="math_number_minmax" id="J/NMank-@vZZD`/uwVYN"><mutation min="0" max="255" label="EndVolume" precision="0"></mutation><field name="SLIDER">0</field></shadow></value></shadow></value><next><block type="device_plot" id="kmgQ6BwQ@Q/rQov)JvyR"><value name="x"><shadow type="math_number_minmax" id="Ttl,i|}k,ZAC{]IVdHc["><mutation min="0" max="4" label="X" precision="1"></mutation><field name="SLIDER">2</field></shadow></value><value name="y"><shadow type="math_number_minmax" id="*D|(2rNW7bz]=Ul4T$/Q"><mutation min="0" max="4" label="Y" precision="1"></mutation><field name="SLIDER">2</field></shadow></value><next><block type="device_pause" id="9a%wieSSC5mGjD57UR?="><value name="pause"><shadow type="timePicker" id=".alnB,=Q^[5W.!T]kG:S"><field name="ms">100</field></shadow></value></block></next></block></next></block></statement><next><block type="controls_if" id="IyTDjShM^3B{6Oii.hrh" deletable="false"><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="device_get_button2" id="H7TF3:-gUqprdC$YD2xN" deletable="false"><field name="NAME">Button.A</field></block></value><statement name="DO0"><block type="function_call" id="N%?5a}s,HFZieEPPYLNw" deletable="false"><mutation name="venstre" functionid="?tCkl(BKO_-cSu)Dm?v0"></mutation><next><block type="device_plot" id="ktW]03TQ]WHpw)bYpeOX"><value name="x"><shadow type="math_number_minmax" id=";tRiZvyQKVnMI!Qo5L#`"><mutation min="0" max="4" label="X" precision="1"></mutation><field name="SLIDER">0</field></shadow></value><value name="y"><shadow type="math_number_minmax" id="Dth:G``=aYiF*N6S8=42"><mutation min="0" max="4" label="Y" precision="1"></mutation><field name="SLIDER">2</field></shadow></value><next><block type="device_pause" id="+J4$c0ui*c!!KYqX%-8K"><value name="pause"><shadow type="timePicker" id="[XgMfF.GHqjHF|^!@6{;"><field name="ms">100</field></shadow></value></block></next></block></next></block></statement><next><block type="controls_if" id=":TH[Za}gO8iQU,a/g9Qi" deletable="false"><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="device_get_button2" id="Uzx$Q]7J~]YtCC:}a;#9" deletable="false"><field name="NAME">Button.B</field></block></value><statement name="DO0"><block type="function_call" id=",a*itNbxSxuh[;Xp6%+v" deletable="false"><mutation name="høyre" functionid="BhP-9pzngO4acF%~K:UU"></mutation><next><block type="device_plot" id="awCbDL-;AifQ)d_^qJP}"><value name="x"><shadow type="math_number_minmax" id="_`d))0FQ_w]4BBp7jQ),"><mutation min="0" max="4" label="X" precision="1"></mutation><field name="SLIDER">4</field></shadow></value><value name="y"><shadow type="math_number_minmax" id="y^#QOtRsm#ufIx#:_*x2"><mutation min="0" max="4" label="Y" precision="1"></mutation><field name="SLIDER">2</field></shadow></value><next><block type="device_pause" id="rT]ed();N.|^QV{Gla@_"><value name="pause"><shadow type="timePicker" id="zzk*p?y@X8#3,ttse5qP"><field name="ms">100</field></shadow></value></block></next></block></next></block></statement><next><block type="device_unplot" id="`^2*U.[Jb%0#*fvp.Eps"><value name="x"><shadow type="math_number_minmax" id="o(E3ZbvC0]gyGB2XrV_)"><mutation min="0" max="4" label="X" precision="1"></mutation><field name="SLIDER">2</field></shadow></value><value name="y"><shadow type="math_number_minmax" id="^N)?!UA;Jf/!|W=}u+%!"><mutation min="0" max="4" label="Y" precision="1"></mutation><field name="SLIDER">0</field></shadow></value><next><block type="device_unplot" id="P[P?@_*E|hnAnrKrY^i}"><value name="x"><shadow type="math_number_minmax" id="dlQ*cf?fC2a}O$EJ.;zR"><mutation min="0" max="4" label="X" precision="1"></mutation><field name="SLIDER">2</field></shadow></value><value name="y"><shadow type="math_number_minmax" id="OTi%IrF4i8a+R?Q^hN^W"><mutation min="0" max="4" label="Y" precision="1"></mutation><field name="SLIDER">2</field></shadow></value><next><block type="device_unplot" id="7[q`P^s1#)(#QB~xuU7G"><value name="x"><shadow type="math_number_minmax" id="sGV2Ol{p.40y0=eVB.T*"><mutation min="0" max="4" label="X" precision="1"></mutation><field name="SLIDER">0</field></shadow></value><value name="y"><shadow type="math_number_minmax" id="4@o7G@h^gkH.v0T-`xP."><mutation min="0" max="4" label="Y" precision="1"></mutation><field name="SLIDER">2</field></shadow></value><next><block type="device_unplot" id="6*N.}j{8{q6!wh}x}EL#"><value name="x"><shadow type="math_number_minmax" id="7`-9Z;^qHdm^~PS$^.b6"><mutation min="0" max="4" label="X" precision="1"></mutation><field name="SLIDER">4</field></shadow></value><value name="y"><shadow type="math_number_minmax" id="f]bBJavvY}LRuEm0va(K"><mutation min="0" max="4" label="Y" precision="1"></mutation><field name="SLIDER">2</field></shadow></value></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></statement></block><block type="function_definition" id="5Ba:O6-WoUXJ]HDZ2/s0" deletable="false" x="592" y="461"><mutation name="stopp" functionid="ESQ,5;K?tk/x|NrQ:gD?"></mutation><field name="function_name">stopp</field><statement name="STACK"><block type="radio_datagram_send" id="sSjVjOaMd2_K2WD@I%^_" deletable="false"><value name="value"><shadow type="math_number" id="YIR^g}Z$;7(*I2!+*gZR"><field name="NUM">3</field></shadow></value></block></statement></block><block type="function_definition" id="v8)5?:^WY_[C?dK+V1V$" deletable="false" x="551" y="952"><mutation name="høyre" functionid="BhP-9pzngO4acF%~K:UU"></mutation><field name="function_name">høyre</field><statement name="STACK"><block type="radio_datagram_send" id="k}yoAAd/c{UZ*3pJ2RST" deletable="false"><value name="value"><shadow type="math_number" id="ONNYzsE_v;=5_kz9}3UB"><field name="NUM">2</field></shadow></value></block></statement></block><block type="function_definition" id="!qhEmGGt@LSc9d9DROHq" deletable="false" x="554" y="1139"><mutation name="venstre" functionid="?tCkl(BKO_-cSu)Dm?v0"></mutation><field name="function_name">venstre</field><statement name="STACK"><block type="radio_datagram_send" id="Kz+%kZ0dm]I4Q,b/;J|W" deletable="false"><value name="value"><shadow type="math_number" id="{.12zq!A#|raMj5AyCu)"><field name="NUM">0</field></shadow></value></block></statement></block></xml>