-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.blocks
1 lines (1 loc) · 8.97 KB
/
main.blocks
1
<xml xmlns="https://developers.google.com/blockly/xml"><variables><variable id="H5bb%jZR)#-Z@_xqx)a9">strip</variable><variable id="QSo,H|6u0KI^_hz|cE_o">c</variable><variable id="jdpa)eBmgg-h^DFKd{su">Index</variable></variables><block type="pxt-on-start" id="H$0f:l]N]tbP8VJ{W#u1" x="0" y="0"><statement name="HANDLER"><block type="variables_set" id="0E{Gq[@9l7WOi}+jt}67"><field name="VAR" id="H5bb%jZR)#-Z@_xqx)a9">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="4,6(ZAo:#yKmdZ|0Lh1!"><field name="pin">DigitalPin.C10</field><field name="mode">NeoPixelMode.RGB</field><value name="numleds"><shadow type="math_number" id="B8bFgKL%i!kjlT[GI~o%"><field name="NUM">24</field></shadow></value></block></value><next><block type="function_call" id="~qQUSzdM+AR|R^2GEoGm"><mutation name="animateTo" functionid=")1kt.7%FJi+gS-AEe[O{"><arg name="led" id="%L7q-V/?_sT?Y|b;U]9e" type="number"/><arg name="color" id="R7GET5K|sGU7B0iS`s4z" type="number"/></mutation><value name="%L7q-V/?_sT?Y|b;U]9e"><shadow type="math_number" id="qAvK,KNW#t/*rgoY}1#h"><field name="NUM">12</field></shadow></value><value name="R7GET5K|sGU7B0iS`s4z"><shadow type="math_number" id="f!DT!oNAy_U#Ndj-IK)7"><field name="NUM">1</field></shadow><block type="neopixel_rgb" id="Cqw-(h$eP*j9Gq)t*b1P"><value name="red"><shadow type="math_number" id="!=}`jbDkQicwO7XW0Zg2"><field name="NUM">255</field></shadow></value><value name="green"><shadow type="math_number" id="{y@BrHYrkk9OI.,CV]iZ"><field name="NUM">12</field></shadow></value><value name="blue"><shadow type="math_number" id="xzW[+K_{,o)~04/h[q/v"><field name="NUM">255</field></shadow></value></block></value></block></next></block></statement></block><block type="device_pin_custom_event" id="w]L~Yf-rSl#@8j?#tT@r" x="2" y="231"><field name="name">TouchPin.P0</field><value name="eventType"><shadow type="control_button_event_down" id="1Lf#1Fju3%|E`UA0/W;^"/></value><statement name="HANDLER"><block type="function_call" id="8=$PQ_Tb)qz-Vg#I:.2`"><mutation name="animateTo" functionid=")1kt.7%FJi+gS-AEe[O{"><arg name="led" id="%L7q-V/?_sT?Y|b;U]9e" type="number"/><arg name="color" id="R7GET5K|sGU7B0iS`s4z" type="number"/></mutation><value name="%L7q-V/?_sT?Y|b;U]9e"><shadow type="math_number" id="=}Y{-6lmEq6#KM?)HWxO"><field name="NUM">12</field></shadow></value><value name="R7GET5K|sGU7B0iS`s4z"><shadow type="math_number" id="1Y7F$hm)@WdoXUm0[v5="><field name="NUM">1</field></shadow><block type="neopixel_rgb" id="D]^HZWJbOirkaicT{HXE"><value name="red"><shadow type="math_number" id="Eaa6{E:S!N@MYDCcL)3d"><field name="NUM">255</field></shadow></value><value name="green"><shadow type="math_number" id="rm34NR4sA-#~2CYy^zqQ"><field name="NUM">12</field></shadow></value><value name="blue"><shadow type="math_number" id="F]b@[dl9cd?qshY-B9tm"><field name="NUM">255</field></shadow></value></block></value></block></statement></block><block type="device_forever" id="[ap%|?KzY)+LCK*tG@[O" x="675" y="243"/><block type="device_pin_custom_event" id="jx1Jq%Y@TG(JaU|To{99" x="-11" y="389"><field name="name">TouchPin.P1</field><value name="eventType"><shadow type="control_button_event_down" id="u@$]6W6?Ja^Xcac+(WSv"/></value><statement name="HANDLER"><block type="function_call" id="Y~CE=2@jr[N8/p)]UUWZ"><mutation name="animateTo" functionid=")1kt.7%FJi+gS-AEe[O{"><arg name="led" id="%L7q-V/?_sT?Y|b;U]9e" type="number"/><arg name="color" id="R7GET5K|sGU7B0iS`s4z" type="number"/></mutation><value name="%L7q-V/?_sT?Y|b;U]9e"><shadow type="math_number" id="dt.N:x8^;B:Ci.+,b}.q"><field name="NUM">16</field></shadow></value><value name="R7GET5K|sGU7B0iS`s4z"><shadow type="math_number" id="L8{KjshXKZPjxSNSbN5*"><field name="NUM">1</field></shadow><block type="neopixel_rgb" id="f2*LD{4A!mFuc.JK1?xm"><value name="red"><shadow type="math_number" id=",;o[_)F0*bIrb42GPxi0"><field name="NUM">44</field></shadow></value><value name="green"><shadow type="math_number" id="3IwJePMv}oyNOU{c]%[0"><field name="NUM">33</field></shadow></value><value name="blue"><shadow type="math_number" id="}:WU9*DQvZ]@b~eyD4ue"><field name="NUM">255</field></shadow></value></block></value></block></statement></block><block type="device_pin_custom_event" id=",bHogP6V5nj22ha+C+~F" x="1" y="578"><field name="name">TouchPin.P2</field><value name="eventType"><shadow type="control_button_event_down" id="^honLfY:rFdu!3bA+161"/></value><statement name="HANDLER"><block type="function_call" id="-p^CV,3o_5f(OMi%p?~M"><mutation name="animateTo" functionid=")1kt.7%FJi+gS-AEe[O{"><arg name="led" id="%L7q-V/?_sT?Y|b;U]9e" type="number"/><arg name="color" id="R7GET5K|sGU7B0iS`s4z" type="number"/></mutation><value name="%L7q-V/?_sT?Y|b;U]9e"><shadow type="math_number" id="/?p-mfCZ4Rm8kJp6i_mT"><field name="NUM">15</field></shadow></value><value name="R7GET5K|sGU7B0iS`s4z"><shadow type="math_number" id="3-LI+XLKRlS6H6+F%vlV"><field name="NUM">1</field></shadow><block type="neopixel_rgb" id="LMZt-EM?L8/z=6VD*:wc"><value name="red"><shadow type="math_number" id="+I^Y;BQfZZ6uN]0BFL@I"><field name="NUM">44</field></shadow></value><value name="green"><shadow type="math_number" id="q}5bl0z[|-KyMJ#BWF?)"><field name="NUM">33</field></shadow></value><value name="blue"><shadow type="math_number" id="~V0J2x{JirZzGF_d,YwC"><field name="NUM">0</field></shadow></value></block></value></block></statement></block><block type="function_definition" id="NHST+O|#OqPzO/!Ye/@[" x="417" y="611"><mutation name="animateTo" functionid=")1kt.7%FJi+gS-AEe[O{"><arg name="led" id="%L7q-V/?_sT?Y|b;U]9e" type="number"/><arg name="color" id="R7GET5K|sGU7B0iS`s4z" type="number"/></mutation><field name="function_name">animateTo</field><value name="%L7q-V/?_sT?Y|b;U]9e"><shadow type="argument_reporter_number" id="WaFE}JCM*mu9dSR!{=o*"><field name="VALUE">led</field></shadow></value><value name="R7GET5K|sGU7B0iS`s4z"><shadow type="argument_reporter_number" id="=riK)gbeY@TS?J70y$OS"><field name="VALUE">color</field></shadow></value><statement name="STACK"><block type="neopixel_clear" id="p6tAKsL.DI14_lOq{Uuz"><value name="strip"><block type="variables_get" id="B,WCa,K/zS)1ua@_(c@{"><field name="VAR" id="H5bb%jZR)#-Z@_xqx)a9">strip</field></block></value><next><block type="pxt_controls_for" id="ql[w$RctOH62;I;IB)*5"><value name="VAR"><shadow type="variables_get_reporter" id="2Me@?;Gz#,CP#KqASZ6g"><field name="VAR" id="jdpa)eBmgg-h^DFKd{su">Index</field></shadow></value><value name="TO"><shadow type="math_whole_number" id="MdN!EbCr(yUniX#8d.Pg"><field name="NUM">4</field></shadow><block type="argument_reporter_number" id="N?bfjD$,-6Qc/P~vg6CJ"><field name="VALUE">led</field></block></value><statement name="DO"><block type="neopixel_set_pixel_color" id="oYusU92DeDR_R?scJ{@E"><value name="strip"><block type="variables_get" id=",1$wrcZt[,oW`mn0#5k@"><field name="VAR" id="H5bb%jZR)#-Z@_xqx)a9">strip</field></block></value><value name="pixeloffset"><shadow type="math_number" id="3W{[T9@{uk3K{mvD4d.e"><field name="NUM">0</field></shadow><block type="variables_get" id="}k/7/2IJPzVAM0y#9iZz"><field name="VAR" id="jdpa)eBmgg-h^DFKd{su">Index</field></block></value><value name="rgb"><shadow type="neopixel_colors" id="`mnxf^-^HNjE5Pi@Wc,K"><field name="color">NeoPixelColors.Red</field></shadow><block type="argument_reporter_number" id="}Gd=t{)C{*C^egNRHpyt"><field name="VALUE">color</field></block></value><next><block type="neopixel_show" id="YBk!XG`i;QXPhAk0s$E4"><value name="strip"><block type="variables_get" id="d_w/z)FUf{f8aR?oQi=#"><field name="VAR" id="H5bb%jZR)#-Z@_xqx)a9">strip</field></block></value><next><block type="control_wait_us" id="Y+i`6Q49po+c7-;O/q[N"><value name="micros"><shadow type="math_number_minmax" id="Ba9+d0_P5]OMxNF{RBxT"><mutation min="0" max="6000" label="Micros" precision="0"/><field name="SLIDER">20000</field></shadow></value></block></next></block></next></block></statement></block></next></block></statement></block><block type="device_pin_custom_event" id="!]Wz2M:N{4.jqx/68LS`" x="24" y="711"><field name="name">TouchPin.P3</field><value name="eventType"><shadow type="control_button_event_down" id="v.1s~k($f/E3qliMU!ud"/></value><statement name="HANDLER"><block type="function_call" id="=8oMQ1+S%xQay!_U5Rl7"><mutation name="animateTo" functionid=")1kt.7%FJi+gS-AEe[O{"><arg name="led" id="%L7q-V/?_sT?Y|b;U]9e" type="number"/><arg name="color" id="R7GET5K|sGU7B0iS`s4z" type="number"/></mutation><value name="%L7q-V/?_sT?Y|b;U]9e"><shadow type="math_number" id="%eKl_pj|Ue~xIiO#dKen"><field name="NUM">6</field></shadow></value><value name="R7GET5K|sGU7B0iS`s4z"><shadow type="math_number" id="2Z$B1Xin,%lZsyNymkHw"><field name="NUM">1</field></shadow><block type="neopixel_rgb" id="431LVcoPJ6{NM@(?(gR3"><value name="red"><shadow type="math_number" id="T0t:ZRdO(2yN-eb/Cc08"><field name="NUM">233</field></shadow></value><value name="green"><shadow type="math_number" id="/9@,rcuRR;p9U#-E-;3%"><field name="NUM">0</field></shadow></value><value name="blue"><shadow type="math_number" id="|~1S!/ujf_*@ya3HU$/W"><field name="NUM">100</field></shadow></value></block></value></block></statement></block></xml>