-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.blocks
1 lines (1 loc) · 8.95 KB
/
main.blocks
1
<xml xmlns="https://developers.google.com/blockly/xml"><variables><variable id="tG=th80$FPdUxxpN?-@)">c</variable></variables><block type="pxt-on-start" id="XmzY@n9wj6sy13^y|Rf4" x="0" y="0"><statement name="HANDLER"><block type="variables_set" id="]s?v/eHpy!%eVXmbALo/"><field name="VAR" id="tG=th80$FPdUxxpN?-@)">c</field><value name="VALUE"><shadow type="math_number" id="G5;n11]n(_gz=:lC%Il!"><field name="NUM">0</field></shadow></value></block></statement></block><block type="device_button_event" id="Qse(kidnAnnv/[#bpr^k" x="296" y="0"><field name="NAME">Button.A</field><statement name="HANDLER"><block type="variables_set" id="0)98)tyeMvVCdXED$i+#"><field name="VAR" id="tG=th80$FPdUxxpN?-@)">c</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="math_modulo" id="RpmpO4+d5sFJRr)H[g5s"><value name="DIVIDEND"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="math_arithmetic" id="aP=F`*qDU1n2%A4|qtp9"><field name="OP">ADD</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="0l#w1qAVXWBY,9hwYgZe"><field name="VAR" id="tG=th80$FPdUxxpN?-@)">c</field></block></value><value name="B"><shadow type="math_number" id="uyYf[|3ofSZYqQhn1|Vz"><field name="NUM">1</field></shadow></value></block></value><value name="DIVISOR"><shadow type="math_number" id="Ct`MN29#SWntW!$JQCds"><field name="NUM">3</field></shadow></value></block></value></block></statement></block><block type="device_forever" id="d*.wY]SO8R#^LkabNO7J" x="-3" y="155"><statement name="HANDLER"><block type="controls_if" id="#7DQdJCpdz1eyRbl_y^8"><mutation else="1"></mutation><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="8d/T{2%lc-lzudJ9Q2mh"><field name="OP">EQ</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="Q3Hc~F]82$I-mD;^;-+y"><field name="VAR" id="tG=th80$FPdUxxpN?-@)">c</field></block></value><value name="B"><shadow type="math_number" id=".D}RVzRt^=D|ea%psUGx"><field name="NUM">0</field></shadow></value></block></value><statement name="DO0"><block type="device_set_digital_pin" id="sB#x31/|RTC7I,e5`D3_"><field name="name">DigitalPin.P0</field><value name="value"><shadow type="math_number_minmax" id="yrp1BI7bwL:3k~]!O3P!"><mutation min="0" max="1" label="Value" precision="0"></mutation><field name="SLIDER">1</field></shadow></value><next><block type="device_plot" id="%Wu$PDygEB!-|2w~ZX(*"><value name="x"><shadow type="math_number_minmax" id="~/!2HQm}AGc?hh{!dE4d"><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="U$tq,@Oj@Z*Lf|VI,xdt"><mutation min="0" max="4" label="Y" precision="1"></mutation><field name="SLIDER">0</field></shadow></value></block></next></block></statement><statement name="ELSE"><block type="device_set_digital_pin" id="h,2i^+MPDi6B+8q7$7S="><field name="name">DigitalPin.P0</field><value name="value"><shadow type="math_number_minmax" id="}P|*:S`bhD){6^g2GR_r"><mutation min="0" max="1" label="Value" precision="0"></mutation><field name="SLIDER">0</field></shadow></value><next><block type="device_unplot" id="vP*_]Q94k{0p)xjdq)RX"><value name="x"><shadow type="math_number_minmax" id="daWLN56Fw*ZdQ~u]ae@H"><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="8oq9/IFn5dE,$g2inDK{"><mutation min="0" max="4" label="Y" precision="1"></mutation><field name="SLIDER">0</field></shadow></value></block></next></block></statement><next><block type="controls_if" id="0annVKcGTS=X(-GHGb)6"><mutation else="1"></mutation><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="vqA9UferYE9qQ$T%c;{u"><field name="OP">EQ</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="FwW6W]:`?w5g8N4GaI~g"><field name="VAR" id="tG=th80$FPdUxxpN?-@)">c</field></block></value><value name="B"><shadow type="math_number" id="Wq*Vo)HHdB}ldv{;j|bR"><field name="NUM">1</field></shadow></value></block></value><statement name="DO0"><block type="device_set_digital_pin" id="qzqy_QXn{!%dcxliU=Y#"><field name="name">DigitalPin.P1</field><value name="value"><shadow type="math_number_minmax" id="!~vbeFEjQ#:4GMeg#7^^"><mutation min="0" max="1" label="Value" precision="0"></mutation><field name="SLIDER">1</field></shadow></value><next><block type="device_plot" id="[,KV[Alm%wJ$}zm}-6l5"><value name="x"><shadow type="math_number_minmax" id="6|:V/]a%A`)M/*x}%GpZ"><mutation min="0" max="4" label="X" precision="1"></mutation><field name="SLIDER">1</field></shadow></value><value name="y"><shadow type="math_number_minmax" id="-w7v9[t{S_,*cCt%9DK6"><mutation min="0" max="4" label="Y" precision="1"></mutation><field name="SLIDER">0</field></shadow></value></block></next></block></statement><statement name="ELSE"><block type="device_set_digital_pin" id="xAbcjS[5HI5^Y:bS}(oW"><field name="name">DigitalPin.P1</field><value name="value"><shadow type="math_number_minmax" id="N~@A@K-b8z79kxS/24w0"><mutation min="0" max="1" label="Value" precision="0"></mutation><field name="SLIDER">0</field></shadow></value><next><block type="device_unplot" id=")N6:3qDn;9V=faJ0ssVK"><value name="x"><shadow type="math_number_minmax" id="m|,IVh5*:3v-cMRz{pk4"><mutation min="0" max="4" label="X" precision="1"></mutation><field name="SLIDER">1</field></shadow></value><value name="y"><shadow type="math_number_minmax" id="tAii:T!H_5{`u.x#[%JZ"><mutation min="0" max="4" label="Y" precision="1"></mutation><field name="SLIDER">0</field></shadow></value></block></next></block></statement><next><block type="controls_if" id="==N0$uxo*N:{4,^/$(UT"><mutation else="1"></mutation><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="KCSqm:aSt.%g^5|UX7k="><field name="OP">EQ</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="-bvpj,xW{*=Wg`Uqu{9Z"><field name="VAR" id="tG=th80$FPdUxxpN?-@)">c</field></block></value><value name="B"><shadow type="math_number" id="U0_qzMH#C$MV5`0wbnB~"><field name="NUM">2</field></shadow></value></block></value><statement name="DO0"><block type="device_set_digital_pin" id="$X,nzM:V=WuKu~*h;]{|"><field name="name">DigitalPin.P2</field><value name="value"><shadow type="math_number_minmax" id="Ju9{(++PecaW8^RBZRd{"><mutation min="0" max="1" label="Value" precision="0"></mutation><field name="SLIDER">1</field></shadow></value><next><block type="device_plot" id="WS50yyu/~v?S;;R)BzpS"><value name="x"><shadow type="math_number_minmax" id="tod3}OUVV(U}VkKuZ4(h"><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="N1*8K28.pe:c52kLIhaV"><mutation min="0" max="4" label="Y" precision="1"></mutation><field name="SLIDER">0</field></shadow></value></block></next></block></statement><statement name="ELSE"><block type="device_set_digital_pin" id="*#2e{,2R|s3uLvpcX;;t"><field name="name">DigitalPin.P2</field><value name="value"><shadow type="math_number_minmax" id="/]Hva]Mr9*2HK3}=SP|~"><mutation min="0" max="1" label="Value" precision="0"></mutation><field name="SLIDER">0</field></shadow></value><next><block type="device_unplot" id="q({cnBGq4{8d7*,p;j_r"><value name="x"><shadow type="math_number_minmax" id="Lk:%I(qh]n(Rw.*pmDg#"><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="1v7V)}qF/V67)xbH?!66"><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></block><block type="device_button_event" id="@,NQ:gr5+BToID^eXnI(" x="286" y="147"><field name="NAME">Button.B</field><statement name="HANDLER"><block type="variables_set" id="Ia?$]p4@!2K;kaS/n]bI"><field name="VAR" id="tG=th80$FPdUxxpN?-@)">c</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="math_modulo" id="jCH$yiKzC96[k31skfjh"><value name="DIVIDEND"><shadow type="math_number" disabled="true"><field name="NUM">0</field></shadow><block type="math_arithmetic" id="^$yNPl~~d!)0*t?C#oN;"><field name="OP">ADD</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="R%/q;C,UB4:f0f=O9hK*"><field name="VAR" id="tG=th80$FPdUxxpN?-@)">c</field></block></value><value name="B"><shadow type="math_number" id="O{w.)^%;+vdYp8OA|P{*"><field name="NUM">2</field></shadow></value></block></value><value name="DIVISOR"><shadow type="math_number" id="%1uoe)G$TpZ}TO)(_LEU"><field name="NUM">3</field></shadow></value></block></value></block></statement></block></xml>