-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.blocks
1 lines (1 loc) · 15.3 KB
/
main.blocks
1
<xml xmlns="https://developers.google.com/blockly/xml"><variables><variable id="Uuga$=+OU~@~gO_loAq{">R</variable><variable id="Hv,}_~,A-OFrTfe/kc=N">G</variable><variable id="?o7P.K4xxef4UJ4hNcvt">B</variable><variable id="Zko*`i923cpbN_e@X=-r">Rchange</variable><variable id="[u1=80ky8A)t9VmHana?">Gchange</variable><variable id="%ggTk}fQw-m$,!s^HMqv">Bchange</variable></variables><block type="device_forever" id="uBArq]+nxHRc@=H!i.sk" x="618" y="-45"><statement name="HANDLER"><block type="device_while" id="sOTW*fhumg26bUh,E5#,"><value name="COND"><shadow type="logic_boolean"><field name="BOOL">FALSE</field></shadow><block type="logic_operation" id=":Mn3b3$_75fk(;`3a4$."><field name="OP">AND</field><value name="A"><block type="logic_negate" id=",gRo%Ma9YPm2s{1xu0eS"><value name="BOOL"><block type="device_get_button2" id="WPp/kAXNEMw+S.l|UK;1"><field name="NAME">Button.A</field></block></value></block></value><value name="B"><block type="logic_negate" id=")j~bHN!8[q--1wMR;|vU"><value name="BOOL"><block type="device_get_button2" id="5z-RANvI*N_#Mt:)yYtW"><field name="NAME">Button.B</field></block></value></block></value></block></value><statement name="DO"><block type="controls_if" id="]R~ki-j5^d}]Jud#,Dxj"><mutation elseif="1"></mutation><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="Xz2/wU!,f.D-Aso,NFA2"><field name="OP">GTE</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="I4sVtWtTh,WELj|T/,28"><field name="VAR" id="Uuga$=+OU~@~gO_loAq{">R</field></block></value><value name="B"><shadow type="math_number" id="202)Y|5iJzprg1o2hLaa"><field name="NUM">1024</field></shadow></value></block></value><statement name="DO0"><block type="variables_set" id="`$--QHHc9{fhtNV7NesY"><field name="VAR" id="Zko*`i923cpbN_e@X=-r">Rchange</field><value name="VALUE"><shadow type="math_number"><field name="NUM">5</field></shadow><block type="math_arithmetic" id="e_CYDB^Q[4:nc;1RGl4["><field name="OP">MULTIPLY</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="yYG?`.Yamxwqd5xf)Gk3"><field name="VAR" id="Zko*`i923cpbN_e@X=-r">Rchange</field></block></value><value name="B"><shadow type="math_number" id=")Z8Puzb[JJN%`:5[:o?5"><field name="NUM">-1</field></shadow></value></block></value></block></statement><value name="IF1"><block type="logic_compare" id=",BFH]Ok1f]%k}A^n{]FB"><field name="OP">LTE</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="_I65HTM[l@z_R@?y]a:7"><field name="VAR" id="Uuga$=+OU~@~gO_loAq{">R</field></block></value><value name="B"><shadow type="math_number" id="9x@130=ye{6TPa2avwJ?"><field name="NUM">0</field></shadow></value></block></value><statement name="DO1"><block type="variables_set" id="X9xoLU=GK(uk1Yn*!}aD"><field name="VAR" id="Zko*`i923cpbN_e@X=-r">Rchange</field><value name="VALUE"><shadow type="math_number"><field name="NUM">5</field></shadow><block type="math_arithmetic" id="X(t[V06+/)=rjE?oMM2Q"><field name="OP">MULTIPLY</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="d]6Q`RM,ry=o_1za/mN$"><field name="VAR" id="Zko*`i923cpbN_e@X=-r">Rchange</field></block></value><value name="B"><shadow type="math_number" id="Q%B7+,%C6c~DsV83m$}}"><field name="NUM">-1</field></shadow></value></block></value></block></statement><next><block type="controls_if" id="T7_*P:T2f;w$vf?f2VRN"><mutation elseif="1"></mutation><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="^k_W8mtnLr6%ApCJs@r="><field name="OP">GTE</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="q:nMwGQr|c`Yy$JT{Xdx"><field name="VAR" id="Hv,}_~,A-OFrTfe/kc=N">G</field></block></value><value name="B"><shadow type="math_number" id="!P;VOw?Z8D+_/k-0PCMB"><field name="NUM">1024</field></shadow></value></block></value><statement name="DO0"><block type="variables_set" id="Yb,chpK0WkqMa*]ORo_a"><field name="VAR" id="[u1=80ky8A)t9VmHana?">Gchange</field><value name="VALUE"><shadow type="math_number"><field name="NUM">5</field></shadow><block type="math_arithmetic" id="v%gKC9F~}0-R7AC{wUiV"><field name="OP">MULTIPLY</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="vR_UrL,W/L0zGgNKW|BF"><field name="VAR" id="[u1=80ky8A)t9VmHana?">Gchange</field></block></value><value name="B"><shadow type="math_number" id="9/^q}SjcuU!(kj|:FV1j"><field name="NUM">-1</field></shadow></value></block></value></block></statement><value name="IF1"><block type="logic_compare" id="4=E96E-zw/BRoU_j/T]|"><field name="OP">LTE</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="KNGVY(1r}pqVa2X8ShIh"><field name="VAR" id="Hv,}_~,A-OFrTfe/kc=N">G</field></block></value><value name="B"><shadow type="math_number" id="[2(?(=yUM?~E=`$06Uza"><field name="NUM">0</field></shadow></value></block></value><statement name="DO1"><block type="variables_set" id="ltlN-WDP**fv[d2fBpn7"><field name="VAR" id="[u1=80ky8A)t9VmHana?">Gchange</field><value name="VALUE"><shadow type="math_number"><field name="NUM">5</field></shadow><block type="math_arithmetic" id="O/!moIhImq)RcCTp-`}x"><field name="OP">MULTIPLY</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="Cj7dhzp(=7GBhkgvhRTq"><field name="VAR" id="[u1=80ky8A)t9VmHana?">Gchange</field></block></value><value name="B"><shadow type="math_number" id="_L*2JmJe2Gb:M*HT!?d8"><field name="NUM">-1</field></shadow></value></block></value></block></statement><next><block type="controls_if" id="K`CkH(n88D%/Je_Y-koz"><mutation elseif="1"></mutation><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="BW[!`v3cUJ=62XXI6*ap"><field name="OP">GTE</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="o_1fJjM]?%AI|EPdT[~:"><field name="VAR" id="?o7P.K4xxef4UJ4hNcvt">B</field></block></value><value name="B"><shadow type="math_number" id="Q,?}E/(Jx=|}8E@8dzVn"><field name="NUM">1024</field></shadow></value></block></value><statement name="DO0"><block type="variables_set" id="m.[seF1cF^q-15i9*ADK"><field name="VAR" id="%ggTk}fQw-m$,!s^HMqv">Bchange</field><value name="VALUE"><shadow type="math_number"><field name="NUM">5</field></shadow><block type="math_arithmetic" id="2E$KIQfXm@E^h/b*yhU3"><field name="OP">MULTIPLY</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="N3}44Hia/ZmyR;zV;OSR"><field name="VAR" id="%ggTk}fQw-m$,!s^HMqv">Bchange</field></block></value><value name="B"><shadow type="math_number" id="c=K+p(/EY@62CN=Fn`-%"><field name="NUM">-1</field></shadow></value></block></value></block></statement><value name="IF1"><block type="logic_compare" id="$ljaz=9j}DL+SZ23{iJ}"><field name="OP">LTE</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="R_rAkb;BEhQ!$9z$k[iL"><field name="VAR" id="?o7P.K4xxef4UJ4hNcvt">B</field></block></value><value name="B"><shadow type="math_number" id="^N~*I7,i,ZNS/szmOApA"><field name="NUM">0</field></shadow></value></block></value><statement name="DO1"><block type="variables_set" id="BH@?#T_IImVU,bh5sfyt"><field name="VAR" id="%ggTk}fQw-m$,!s^HMqv">Bchange</field><value name="VALUE"><shadow type="math_number"><field name="NUM">5</field></shadow><block type="math_arithmetic" id="kTV]X-].$1?iTIWsy{T-"><field name="OP">MULTIPLY</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="|:@xG?RLZH]FrVa0CQw9"><field name="VAR" id="%ggTk}fQw-m$,!s^HMqv">Bchange</field></block></value><value name="B"><shadow type="math_number" id="0L_j]+2VXdwYn$QH1J[r"><field name="NUM">-1</field></shadow></value></block></value></block></statement><next><block type="device_set_analog_pin" id="WLd]m!j0@h#]v}CHsJWZ"><field name="name">AnalogPin.P13</field><value name="value"><shadow type="math_number_minmax"><mutation min="0" max="1023" label="Value" precision="0"></mutation><field name="SLIDER">1023</field></shadow><block type="variables_get" id="4~f?]J[lrnv`Z3cfqrZj"><field name="VAR" id="Uuga$=+OU~@~gO_loAq{">R</field></block></value><next><block type="device_set_analog_pin" id="|/L!4Pz2nkUGQ]wt]Sj]"><field name="name">AnalogPin.P14</field><value name="value"><shadow type="math_number_minmax"><mutation min="0" max="1023" label="Value" precision="0"></mutation><field name="SLIDER">1023</field></shadow><block type="variables_get" id="Ev]+0!XG(#|yleZ^0X/9"><field name="VAR" id="Hv,}_~,A-OFrTfe/kc=N">G</field></block></value><next><block type="device_set_analog_pin" id="L@/49ymg}5BkZENo{p25"><field name="name">AnalogPin.P15</field><value name="value"><shadow type="math_number_minmax"><mutation min="0" max="1023" label="Value" precision="0"></mutation><field name="SLIDER">1023</field></shadow><block type="variables_get" id="f1=]_yzKx^8VL~7BoYrI"><field name="VAR" id="?o7P.K4xxef4UJ4hNcvt">B</field></block></value><next><block type="variables_change" id="%`ePRMO#BFkf#3I-s/Zt"><field name="VAR" id="Uuga$=+OU~@~gO_loAq{">R</field><value name="VALUE"><shadow type="math_number"><field name="NUM">1</field></shadow><block type="variables_get" id="#lCBJ)J5MFg)bZNSelG+"><field name="VAR" id="Zko*`i923cpbN_e@X=-r">Rchange</field></block></value><next><block type="variables_change" id="eCqWYD._VM.#~_(j3sa="><field name="VAR" id="Hv,}_~,A-OFrTfe/kc=N">G</field><value name="VALUE"><shadow type="math_number"><field name="NUM">1</field></shadow><block type="variables_get" id="M*~)cP$c.u)SXX[Xj5u+"><field name="VAR" id="[u1=80ky8A)t9VmHana?">Gchange</field></block></value><next><block type="variables_change" id="bI8SaXF^;-BNUfXKD3t6"><field name="VAR" id="?o7P.K4xxef4UJ4hNcvt">B</field><value name="VALUE"><shadow type="math_number"><field name="NUM">1</field></shadow><block type="variables_get" id="rwonKHc15nmPKGb?8u3!"><field name="VAR" id="%ggTk}fQw-m$,!s^HMqv">Bchange</field></block></value></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></statement></block></statement></block><block type="device_button_event" id="UKw)f@pg9|/7a_}4q8MN" x="0" y="0"><field name="NAME">Button.A</field><statement name="HANDLER"><block type="device_set_digital_pin" id="KIX2Yg_akTNPYyDv=^Lr"><field name="name">DigitalPin.P15</field><value name="value"><shadow type="math_number_minmax" id="S[BPNx{r=`{qO+h.$3?G"><mutation min="0" max="1" label="Value" precision="0"></mutation><field name="SLIDER">1</field></shadow></value><next><block type="device_set_digital_pin" id="]lVF,EaBNnkBvkX6$(o,"><field name="name">DigitalPin.P14</field><value name="value"><shadow type="math_number_minmax" id="[84Sj*CwjF:^.0*^^2J{"><mutation min="0" max="1" label="Value" precision="0"></mutation><field name="SLIDER">0</field></shadow></value><next><block type="device_set_digital_pin" id="f+ruf6R8H^si;;~+N`Bw"><field name="name">DigitalPin.P13</field><value name="value"><shadow type="math_number_minmax" id="vD-$0=iIvyra-/gTQNc]"><mutation min="0" max="1" label="Value" precision="0"></mutation><field name="SLIDER">0</field></shadow></value></block></next></block></next></block></statement></block><block type="pxt-on-start" id="WQo$`q!L;4ln/:[8Bsuo" x="357" y="-7"><statement name="HANDLER"><block type="device_print_message" id="JMv*-OeiOP/fwX?G^oZE"><value name="text"><shadow type="text" id="WmxHM:rYl||J$=@VM)|G"><field name="TEXT">RGB</field></shadow></value><next><block type="variables_set" id="/LPPl9RnG@64+mdXbSpX"><field name="VAR" id="Uuga$=+OU~@~gO_loAq{">R</field><value name="VALUE"><shadow type="math_number" id="9xvepRN?3tG.SVsA]MYQ"><field name="NUM">500</field></shadow></value><next><block type="variables_set" id="W=[GP)7j$-UeU(P6hdM8"><field name="VAR" id="Hv,}_~,A-OFrTfe/kc=N">G</field><value name="VALUE"><shadow type="math_number" id="1H*UMo:%2|NT;H8.6?6~"><field name="NUM">500</field></shadow></value><next><block type="variables_set" id="aL/Osj7IE%j7OYu!K!_u"><field name="VAR" id="?o7P.K4xxef4UJ4hNcvt">B</field><value name="VALUE"><shadow type="math_number" id="T}D82M{}?E)a!FR^:E}s"><field name="NUM">500</field></shadow></value><next><block type="variables_set" id="_+cXF=3#bC($OS|_XX0G"><field name="VAR" id="Zko*`i923cpbN_e@X=-r">Rchange</field><value name="VALUE"><shadow type="math_number" id="kL37{VXweLD8_g{Y$Y^l"><field name="NUM">5</field></shadow></value><next><block type="variables_set" id="i[YGt~Y77t0rxyj3BP$h"><field name="VAR" id="[u1=80ky8A)t9VmHana?">Gchange</field><value name="VALUE"><shadow type="math_number" id=",;[C-BlNkZR_!=U3nKz^"><field name="NUM">19</field></shadow></value><next><block type="variables_set" id="D^3zgV@[|NMY~7*5An=["><field name="VAR" id="%ggTk}fQw-m$,!s^HMqv">Bchange</field><value name="VALUE"><shadow type="math_number" id="w|[{sC:-kd5k-TXmM^^d"><field name="NUM">34</field></shadow></value></block></next></block></next></block></next></block></next></block></next></block></next></block></statement></block><block type="device_button_event" id="y%P$ZKSRr9!G_Wh!UiFW" x="-2" y="245"><field name="NAME">Button.B</field><statement name="HANDLER"><block type="device_set_digital_pin" id="roF@W#GTiS:OJ]i-%pLv"><field name="name">DigitalPin.P15</field><value name="value"><shadow type="math_number_minmax" id="x`2.yV[oW[}d49bPJ6+U"><mutation min="0" max="1" label="Value" precision="0"></mutation><field name="SLIDER">0</field></shadow></value><next><block type="device_set_digital_pin" id=":9bsfF_%lBv+}Gj)}je:"><field name="name">DigitalPin.P14</field><value name="value"><shadow type="math_number_minmax" id="jgo,?H2}2P_x.ytVMS?n"><mutation min="0" max="1" label="Value" precision="0"></mutation><field name="SLIDER">1</field></shadow></value><next><block type="device_set_digital_pin" id="?0X#G}#LZX-=J3V%Je+b"><field name="name">DigitalPin.P13</field><value name="value"><shadow type="math_number_minmax" id=")[T)/3o*t5t4=NSBP`~O"><mutation min="0" max="1" label="Value" precision="0"></mutation><field name="SLIDER">0</field></shadow></value></block></next></block></next></block></statement></block><block type="device_button_event" id="aT(dHjLG0lpnho}7-a!f" x="0" y="491"><field name="NAME">Button.AB</field><statement name="HANDLER"><block type="device_set_digital_pin" id="VVDsrFupoA{;lMf_p%@B"><field name="name">DigitalPin.P15</field><value name="value"><shadow type="math_number_minmax" id="hWj!]_1ZL/$y|[eV!9WN"><mutation min="0" max="1" label="Value" precision="0"></mutation><field name="SLIDER">0</field></shadow></value><next><block type="device_set_digital_pin" id="M+zVu`AsfxE40+Y!i/+F"><field name="name">DigitalPin.P14</field><value name="value"><shadow type="math_number_minmax" id="H]_?_][E;mwI3ZplZ`W0"><mutation min="0" max="1" label="Value" precision="0"></mutation><field name="SLIDER">0</field></shadow></value><next><block type="device_set_digital_pin" id="5EiHi_MR9whpkEhtr*?E"><field name="name">DigitalPin.P13</field><value name="value"><shadow type="math_number_minmax" id="sXDU8YxymQg}a-HN(+rZ"><mutation min="0" max="1" label="Value" precision="0"></mutation><field name="SLIDER">1</field></shadow></value></block></next></block></next></block></statement></block></xml>