-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.blocks
1 lines (1 loc) · 8.73 KB
/
main.blocks
1
<xml xmlns="https://developers.google.com/blockly/xml"><variables><variable id="qq4hJ$#U(#2xce/n7#a]">strip</variable><variable id="IAOPm~ZB=sLcJ[z9^W=2">motionLevel</variable><variable id="A2~}yhD1VOGH},Lb(=a%">lastTime</variable></variables><block type="pxt-on-start" id="@`AQq=jQk[vg2EKX3g`Y" x="-221" y="-3"><statement name="HANDLER"><block type="variables_set" id="H~L6~7:-8.!y|.suBZYl"><field name="VAR" id="A2~}yhD1VOGH},Lb(=a%">lastTime</field><value name="VALUE"><shadow type="math_number" id=";|4Pigij,s_#*S)+)39A"><field name="NUM">0</field></shadow></value><next><block type="variables_set" id="q@-z60IzD1Z5TAeXgKEY"><field name="VAR" id="IAOPm~ZB=sLcJ[z9^W=2">motionLevel</field><value name="VALUE"><shadow type="math_number" id="4h}}0U~6a1t}`Q$b{H?h"><field name="NUM">1</field></shadow></value><next><block type="variables_set" id="l86/,O7^%JNSv.wCK:/y"><field name="VAR" id="qq4hJ$#U(#2xce/n7#a]">strip</field><value name="VALUE"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number"><field name="NUM">0</field></shadow><block type="neopixel_create" id="4P2U/MWF@Ol0GJt_h%Ce"><field name="pin">DigitalPin.P2</field><field name="mode">NeoPixelMode.RGB</field><value name="numleds"><shadow type="math_number" id="DEF#Am7zJ?.,73g?d$[M"><field name="NUM">83</field></shadow></value></block></value><next><block type="neopixel_show" id="UgNWPVl0R!f*|/*H4BHf"><value name="strip"><block type="variables_get" id="e[j@wxB]s2NPJlEX=h9N"><field name="VAR" id="qq4hJ$#U(#2xce/n7#a]">strip</field></block></value></block></next></block></next></block></next></block></statement></block><block type="device_forever" id="WJP~)vC{ZYAPDShhaSaL" x="-229" y="300"><statement name="HANDLER"><block type="controls_if" id="#^$`0?86h_TLq~^L,T!)"><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="/360[QanVpPxDtzl@#!Z"><field name="OP">GTE</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="4]p=ss!D9*NWQF/:.I{K"><field name="VAR" id="IAOPm~ZB=sLcJ[z9^W=2">motionLevel</field></block></value><value name="B"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="device_random" id="[rv@=@AK1n[8(ecV~Zbt"><value name="min"><shadow type="math_number" id="8.8Im{;.ep,W$Xy-]CYL"><field name="NUM">1</field></shadow></value><value name="limit"><shadow type="math_number" id="dGL42{b{R:;4zEl|-f*p"><field name="NUM">20</field></shadow></value></block></value></block></value><statement name="DO0"><block type="neopixel_set_pixel_color" id="MN9DES1JVlxt!%N3c,1o"><value name="strip"><block type="variables_get" id="~WJz1~=YD(0)zNpiWjbC"><field name="VAR" id="qq4hJ$#U(#2xce/n7#a]">strip</field></block></value><value name="pixeloffset"><shadow type="math_number" id="N|+n~9L_=Ky{6v-?WmzO"><field name="NUM">0</field></shadow></value><value name="rgb"><shadow type="neopixel_colors"><field name="color">NeoPixelColors.Red</field></shadow><block type="neopixel_rgb" id="8(=d0;-:sb4:U/;ek=MM"><value name="red"><shadow type="math_number"><field name="NUM">255</field></shadow><block type="device_random" id="MXNDG_4=O$QaWN_4R6-}"><value name="min"><shadow type="math_number" id="~smIW89we*|MhQro(tiM"><field name="NUM">50</field></shadow></value><value name="limit"><shadow type="math_number" id="AEBF,X$(6IX_bO=v7i-t"><field name="NUM">255</field></shadow></value></block></value><value name="green"><shadow type="math_number"><field name="NUM">255</field></shadow><block type="device_random" id="d146v-/G_-vm{M{}uU-~"><value name="min"><shadow type="math_number" id="]/D{!z,:Wv!8bi7gB^0Y"><field name="NUM">50</field></shadow></value><value name="limit"><shadow type="math_number" id="/)Phpo7M%C{GI^,:LhBF"><field name="NUM">255</field></shadow></value></block></value><value name="blue"><shadow type="math_number"><field name="NUM">255</field></shadow><block type="device_random" id="~7R]W3sJVN+JgfdIRt(n"><value name="min"><shadow type="math_number" id="cAi^~cm.-5=uo4L8C(o?"><field name="NUM">50</field></shadow></value><value name="limit"><shadow type="math_number" id="Jjo-Sl0[4#Y`{=1+2TA,"><field name="NUM">255</field></shadow></value></block></value></block></value></block></statement><next><block type="neopixel_shift" id="bc8(]R(?e)JFb1uDsn3O"><value name="strip"><block type="variables_get" id=")g9[v7k~c@daS5qprne9"><field name="VAR" id="qq4hJ$#U(#2xce/n7#a]">strip</field></block></value><value name="offset"><shadow type="math_number" id="MNYUXxz|ytHesK-:;n_P"><field name="NUM">1</field></shadow></value><next><block type="neopixel_show" id="caB6[A_zeP@3*%n!kr{!"><value name="strip"><block type="variables_get" id="iR.mZKIfa(`A`E29i}6$"><field name="VAR" id="qq4hJ$#U(#2xce/n7#a]">strip</field></block></value><next><block type="controls_if" id="2inUw$TjSRO[5gYtMTUO"><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_operation" id="c|m]B`w^!e4+:6KOKw2V"><field name="OP">AND</field><value name="A"><block type="logic_compare" id="nZQaEH22y[Jv3Z-nLU,k"><field name="OP">GT</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="VBVa;+d*n4erJ3(K(LU@"><field name="VAR" id="IAOPm~ZB=sLcJ[z9^W=2">motionLevel</field></block></value><value name="B"><shadow type="math_number" id="oK-pyA^Ym|jI}trn^$:s"><field name="NUM">1</field></shadow></value></block></value><value name="B"><block type="logic_compare" id="WOpx7}5~=fku[cG1uNGS"><field name="OP">GT</field><value name="A"><shadow type="text"><field name="TEXT"/></shadow><block type="math_arithmetic" id="m|(JH~9{^%Jc)7V`4,|;"><field name="OP">MINUS</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="device_get_running_time" id="N;a0S~CqH@rePgzeKJxY"/></value><value name="B"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="I0MYF#Cls`L?!^O1n.|4"><field name="VAR" id="A2~}yhD1VOGH},Lb(=a%">lastTime</field></block></value></block></value><value name="B"><shadow type="text"><field name="TEXT"/></shadow><block type="math_number" id="+7PxI8Lo}KLV$IfjrRK7"><field name="NUM">1000</field></block></value></block></value></block></value><statement name="DO0"><block type="variables_change" id="I+jAO2sR|r)Q3HRMCmX,"><field name="VAR" id="IAOPm~ZB=sLcJ[z9^W=2">motionLevel</field><value name="VALUE"><shadow type="math_number" id="]mZ212h=K1!e?3q7P|j8"><field name="NUM">-1</field></shadow></value><next><block type="variables_set" id="e+AH.kG.H/g6(GQ6idU6"><field name="VAR" id="A2~}yhD1VOGH},Lb(=a%">lastTime</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="device_get_running_time" id="[u]O:A?5LkA/v|LXzy#j"/></value></block></next></block></statement><next><block type="device_pause" id="xkUrw$R+g1UzAJ1D8{f("><value name="pause"><shadow type="timePicker" id="D^]}xJ;o27QTQp|#=.0B"><field name="ms">100</field></shadow></value></block></next></block></next></block></next></block></next></block></statement></block><block type="device_show_number" id="|GgMCB27a*0D|lMaR1Yt" disabled="true" x="920" y="726"><value name="number"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="9sL7n-k@02mB%M4l{NRR"><field name="VAR" id="IAOPm~ZB=sLcJ[z9^W=2">motionLevel</field></block></value></block><block type="device_forever" id="BfOD|PNuTZ^:4@$,rc4r" x="-233" y="929"><statement name="HANDLER"><block type="controls_if" id="27w1d}?ezS_F:|~za4%_"><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_operation" id="bMLM8Q/2H(IJWdN*8LDY"><field name="OP">AND</field><value name="A"><block type="logic_compare" id="%|5%tRDj|!_#z~BtcXpb"><field name="OP">LT</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="9m+iCBm_jqsv;o:0#B6b"><field name="VAR" id="IAOPm~ZB=sLcJ[z9^W=2">motionLevel</field></block></value><value name="B"><shadow type="math_number" id="|DI8mC7Qo)9?%e=S_)~4"><field name="NUM">20</field></shadow></value></block></value><value name="B"><block type="logic_compare" id="0XX8ON2{7gy|-{XIBeFL"><field name="OP">GT</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="device_acceleration" id="))ulz?ncyGXPcOfr]~,q"><field name="NAME">Dimension.Strength</field></block></value><value name="B"><shadow type="math_number" id="Z5IdeJ/O$80g,J3*USE|"><field name="NUM">1100</field></shadow></value></block></value></block></value><statement name="DO0"><block type="variables_change" id="^Wn}*;:3~.cf)7+d|{4{"><field name="VAR" id="IAOPm~ZB=sLcJ[z9^W=2">motionLevel</field><value name="VALUE"><shadow type="math_number" id="-uN3o|g$lUS!VUIh`5Me"><field name="NUM">1</field></shadow></value></block></statement></block></statement></block></xml>