-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.blocks
1 lines (1 loc) · 8.18 KB
/
main.blocks
1
<xml xmlns="https://developers.google.com/blockly/xml"><variables><variable id="E6Xx^N$6ic7Dsz52m$b)">x</variable><variable id="ctE0epp|gf}[8p;j/N@)">y</variable><variable id=",Z%G@zm:4A{-oMT2/AI,">time</variable><variable id="9pVOJ8rnPsI.O5yL_]W.">row</variable><variable id="q$c1JGYP%`J1j2ERN?yk">direction</variable><variable id="n%O#urIXv4e*gJvRwp`:">polarity</variable></variables><block type="pxt-on-start" id="|1-7:?DP5cbsIOJH984)" x="2" y="0"><statement name="HANDLER"><block type="variables_change" id="VCj6Ao:5.70dJc6KC1tz"><field name="VAR" id=",Z%G@zm:4A{-oMT2/AI,">time</field><value name="VALUE"><shadow type="math_number" id="]yUyG~h:kGd.(WHd_:Gm"><field name="NUM">100</field></shadow></value><next><block type="variables_set" id="L==/w=A~WTsmg-:wuPVW"><field name="VAR" id="ctE0epp|gf}[8p;j/N@)">y</field><value name="VALUE"><shadow type="math_number" id="JNb#|DZEOD2YawF(O9B="><field name="NUM">0</field></shadow></value><next><block type="variables_set" id="/k/bN|hxi6U{q%bs}}q4"><field name="VAR" id="E6Xx^N$6ic7Dsz52m$b)">x</field><value name="VALUE"><shadow type="math_number" id="Q/5{=aWYwkNPeJ.ctQS?"><field name="NUM">0</field></shadow></value><next><block type="variables_set" id="hS,/ng`aVvSO|t%Fku!^"><field name="VAR" id="n%O#urIXv4e*gJvRwp`:">polarity</field><value name="VALUE"><shadow type="math_number" id="RaRx22.S^sFrLR/+2[u0"><field name="NUM">1</field></shadow></value><next><block type="variables_set" id="!23yYx13r)RyEJx)aY.+"><field name="VAR" id="q$c1JGYP%`J1j2ERN?yk">direction</field><value name="VALUE"><shadow type="math_number" id="Zp;EdGmo9C*w/*0U`J;R"><field name="NUM">1</field></shadow></value></block></next></block></next></block></next></block></next></block></statement></block><block type="device_button_event" id="^@KUHO8jcLk2KDHjK#[M" x="281" y="-12"><field name="NAME">Button.B</field><statement name="HANDLER"><block type="variables_set" id="cpZ:Dvj4{gIC?)!a7p(u"><field name="VAR" id=",Z%G@zm:4A{-oMT2/AI,">time</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="math_arithmetic" id="e*kt4$RKu_V/T}aW{ODO"><field name="OP">MULTIPLY</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="ui#8N#$+$d`s!TMS|Kb}"><field name="VAR" id=",Z%G@zm:4A{-oMT2/AI,">time</field></block></value><value name="B"><shadow type="math_number" id="pVqR#|`~I?#SPn4W=WOf"><field name="NUM">1.15</field></shadow></value></block></value></block></statement></block><block type="function_definition" id="$NJsyI.|mdk|xLV6)r((" collapsed="true" x="737" y="-35"><mutation name="plot LED" functionid="Pezn0]1KX/Ddojwrl.gY"/><field name="function_name">plot LED</field><statement name="STACK"><block type="device_plot" id="0[P39m0Dwo7mJCC^3E]o"><value name="x"><shadow type="math_number_minmax"><mutation min="0" max="4" label="X" precision="1"/><field name="SLIDER">0</field></shadow><block type="variables_get" id="7;tg,6MFC/C2#n)@N:;Y"><field name="VAR" id="E6Xx^N$6ic7Dsz52m$b)">x</field></block></value><value name="y"><shadow type="math_number_minmax"><mutation min="0" max="4" label="Y" precision="1"/><field name="SLIDER">0</field></shadow><block type="variables_get" id="LGGWSw^kp(WDT{]lesl7"><field name="VAR" id="ctE0epp|gf}[8p;j/N@)">y</field></block></value><next><block type="device_pause" id="_]MoqNEKWDD(M8[(Nq?7"><value name="pause"><shadow type="timePicker"><field name="ms">500</field></shadow><block type="variables_get" id=":e2Eb]zsz:USFR_wb4D5"><field name="VAR" id=",Z%G@zm:4A{-oMT2/AI,">time</field></block></value><next><block type="device_unplot" id="}%%*oGT|QOjOD9u+[,Y."><value name="x"><shadow type="math_number_minmax"><mutation min="0" max="4" label="X" precision="1"/><field name="SLIDER">0</field></shadow><block type="variables_get" id="_UzP[Yb8J(bD#eDb0i/6"><field name="VAR" id="E6Xx^N$6ic7Dsz52m$b)">x</field></block></value><value name="y"><shadow type="math_number_minmax"><mutation min="0" max="4" label="Y" precision="1"/><field name="SLIDER">0</field></shadow><block type="variables_get" id="hCK=$JAs@dA`q+jH`a1U"><field name="VAR" id="ctE0epp|gf}[8p;j/N@)">y</field></block></value></block></next></block></next></block></statement></block><block type="device_button_event" id="wQwk0a9bG#=S~[v5c_6a" x="284" y="155"><field name="NAME">Button.A</field><statement name="HANDLER"><block type="variables_set" id="WHgz#_Wn]2(%8rom[80!"><field name="VAR" id=",Z%G@zm:4A{-oMT2/AI,">time</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="math_arithmetic" id="0-4C;-Get#h)%]*}Kevq"><field name="OP">MULTIPLY</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="QVX+lm;$[5rCH2fNhTlu"><field name="VAR" id=",Z%G@zm:4A{-oMT2/AI,">time</field></block></value><value name="B"><shadow type="math_number" id="2lUOJ1qR5,-6,[^65p{O"><field name="NUM">0.85</field></shadow></value></block></value></block></statement></block><block type="device_forever" id=";VwBjo8cBzt|#*XFd|0," x="-12" y="338"><statement name="HANDLER"><block type="controls_repeat_ext" id="h7~B#@*o5KoS)1#!ng9|"><value name="TIMES"><shadow type="math_whole_number" id="}mG`hkCXkS0r7f:7eNwz"><field name="NUM">5</field></shadow></value><statement name="DO"><block type="controls_repeat_ext" id="hu97AsEN9^Xby-~MRgY0"><value name="TIMES"><shadow type="math_whole_number" id="Py`a8pLlfh}wlRcnqesc"><field name="NUM">5</field></shadow></value><statement name="DO"><block type="function_call" id="ABi=Hjjk=Oei$kvu@Ff*"><mutation name="plot LED" functionid="Pezn0]1KX/Ddojwrl.gY"/><next><block type="variables_change" id="QHT)F_otg@Ih=M(wh_;N"><field name="VAR" id="ctE0epp|gf}[8p;j/N@)">y</field><value name="VALUE"><shadow type="math_number"><field name="NUM">1</field></shadow><block type="variables_get" id="tyc0AL;n-]9f;_pn,xz_"><field name="VAR" id="n%O#urIXv4e*gJvRwp`:">polarity</field></block></value></block></next></block></statement><next><block type="variables_set" id="WTlLRXp/P6Qln#hgEJ|%"><field name="VAR" id="n%O#urIXv4e*gJvRwp`:">polarity</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="math_arithmetic" id="QXu6-P$Hw5mC#N%i^9=/"><field name="OP">MULTIPLY</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id=",WfCc^nsCR%D15h.dxOJ"><field name="VAR" id="n%O#urIXv4e*gJvRwp`:">polarity</field></block></value><value name="B"><shadow type="math_number" id="JEczvp+GOnqNs!JJtTYb"><field name="NUM">-1</field></shadow></value></block></value><next><block type="variables_change" id="_.16F(rX:BCQ/^p6*Sxp"><field name="VAR" id="ctE0epp|gf}[8p;j/N@)">y</field><value name="VALUE"><shadow type="math_number"><field name="NUM">1</field></shadow><block type="variables_get" id="l2qq?$oJdle7Kt2BAp{#"><field name="VAR" id="n%O#urIXv4e*gJvRwp`:">polarity</field></block></value><next><block type="variables_change" id="a~?3(pt8gOwtY}As/mq_"><field name="VAR" id="E6Xx^N$6ic7Dsz52m$b)">x</field><value name="VALUE"><shadow type="math_number"><field name="NUM">1</field></shadow><block type="variables_get" id="oq_7;8j]*HcD8$[4n~x2"><field name="VAR" id="q$c1JGYP%`J1j2ERN?yk">direction</field></block></value></block></next></block></next></block></next></block></statement><next><block type="variables_set" id="$0z3Tq0obFjnZu1a{zEK"><field name="VAR" id="q$c1JGYP%`J1j2ERN?yk">direction</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="math_arithmetic" id="{6i^]eB=EqsMVEH8IU~6"><field name="OP">MULTIPLY</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="3ybiK4tyTMxwhiHXlN[%"><field name="VAR" id="q$c1JGYP%`J1j2ERN?yk">direction</field></block></value><value name="B"><shadow type="math_number" id="-[(d!_Es0:vRx$WCdZ33"><field name="NUM">-1</field></shadow></value></block></value><next><block type="variables_change" id="q6kj/2d}^n`:nNM$ccag"><field name="VAR" id="E6Xx^N$6ic7Dsz52m$b)">x</field><value name="VALUE"><shadow type="math_number"><field name="NUM">1</field></shadow><block type="variables_get" id="@;%/bx}Q~{WH,c*(kCZJ"><field name="VAR" id="q$c1JGYP%`J1j2ERN?yk">direction</field></block></value></block></next></block></next></block></statement></block></xml>