-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.blocks
7 lines (7 loc) · 4.41 KB
/
main.blocks
1
2
3
4
5
6
7
<xml xmlns="https://developers.google.com/blockly/xml"><variables><variable id="sx[COrXrTu)bx|zkk?1E">strip</variable><variable id="vglcaPz7Qa_N!XPYrc_P">strip2</variable></variables><block type="pxt-on-start" id=",D|WnF~.M2C_EZ+@U^Yp" x="0" y="0"><statement name="HANDLER"><block type="synth_set_volume" id="XDmn]d$.F}k8qBl{WC!["><value name="volume"><shadow type="math_number_minmax" id="lW/hnXjNla4SF}r`hBo?"><mutation min="0" max="255" label="Volume" precision="0"></mutation><field name="SLIDER">255</field></shadow></value><next><block type="variables_set" id="O.]pJ}rTm;@qO9,[1XtN"><field name="VAR" id="sx[COrXrTu)bx|zkk?1E">strip</field><value name="VALUE"><shadow type="math_number" id="!!l^AE57$dKUG@levp0S"><field name="NUM">0</field></shadow><block type="neopixel_create" id="i$R{hEx{Z_!#=YEb/(^."><field name="pin">DigitalPin.P0</field><field name="mode">NeoPixelMode.RGB</field><value name="numleds"><shadow type="math_number" id="]%oXx,HSA/X+GeG:e5P9"><field name="NUM">24</field></shadow></value></block></value><next><block type="neopixel_set_strip_rainbow" id="Id18:luzd3S$$;hg{zVq"><value name="strip"><block type="variables_get" id="beLp4*0ZH(c-nzH`O::k"><field name="VAR" id="sx[COrXrTu)bx|zkk?1E">strip</field></block></value><value name="startHue"><shadow type="math_number" id="M3^Dyv-79C,jh`{/Dg4r"><field name="NUM">1</field></shadow></value><value name="endHue"><shadow type="math_number" id="rNG-Ioelf[k4tkb@|mOQ"><field name="NUM">360</field></shadow></value><next><block type="neopixel_each_brightness" id="xv[/qo=J_:O(y$}[)rY|"><value name="strip"><block type="variables_get" id="p_b]xXohlHDl.uJ$.b),"><field name="VAR" id="sx[COrXrTu)bx|zkk?1E">strip</field></block></value></block></next></block></next></block></next></block></statement></block><block type="device_button_event" id="Rq9b{l`w.O7{[I9Y/`?{" x="837" y="0"><field name="NAME">Button.B</field><statement name="HANDLER"><block type="music_playable_play_default_bkg" id="z#ml#[8vrQWlQ(1iE57D"><field name="playbackMode">music.PlaybackMode.LoopingInBackground</field><value name="toPlay"><shadow type="device_builtin_melody_playable" id="E[J|k9?(HO__NGsy,/fQ"><field name="melody">Melodies.Ode</field></shadow></value></block></statement></block><block type="device_button_event" id="|xKlvQ4Npd|?@te1x!sm" x="0" y="317"><field name="NAME">Button.AB</field><statement name="HANDLER"><block type="music_stop_all_sounds" id="4G+Zx7w|}qt:8=s^1UV$"></block></statement></block><block type="device_button_event" id="H}hL[4)KftpPBLu$}1_U" x="234" y="317"><field name="NAME">Button.A</field><statement name="HANDLER"><block type="music_playable_play_default_bkg" id="LOJEs6GR!~3IyrVyUJcl"><field name="playbackMode">music.PlaybackMode.LoopingInBackground</field><value name="toPlay"><shadow type="device_builtin_melody_playable" id="P8h_#u3oWOYc{n+_Yz`)"><field name="melody">Melodies.Entertainer</field></shadow></value></block></statement></block><block type="device_forever" id="?+c%`fs$irh8`]ys+lyB" x="756" y="317"><statement name="HANDLER"><block type="device_show_leds" id="P*i+hWjO6g:(]=R+Yxg@"><field name="LEDS">`
. . # . .
. # # # .
# # # # #
# # # # #
. . # . .
`</field><next><block type="device_pause" id="P3LK=7dqt3$L-A|Lz.BB"><value name="pause"><shadow type="timePicker" id="FsvUogdMotz[.QiL*s~C"><field name="ms">2000</field></shadow></value><next><block type="device_print_message" id="w1h[ve=TYq}[l+~ftf;3"><value name="text"><shadow type="text" id="lY^gxiR=Ukw%r4Sh/gM?"><field name="TEXT">Merry christmas!</field></shadow></value></block></next></block></next></block></statement></block><block type="device_forever" id="Qj.^.G`jJ5:X%V-df!t(" x="1113" y="317"><statement name="HANDLER"><block type="neopixel_rotate" id="L$k!NDel2+Z0ygw4c9Uk"><value name="strip"><block type="variables_get" id="cb[ngeNv^SLNaRk#;)1n"><field name="VAR" id="sx[COrXrTu)bx|zkk?1E">strip</field></block></value><value name="offset"><shadow type="math_number" id="BXrCYZjgaQh4=EY(ucgD"><field name="NUM">1</field></shadow></value><next><block type="neopixel_show" id="E=Zi%lM.adPFu~58Dhqp"><value name="strip"><block type="variables_get" id="YXspjK3+:oCz^I$MwIJp"><field name="VAR" id="sx[COrXrTu)bx|zkk?1E">strip</field></block></value><next><block type="device_pause" id="Tv14,[H=.`VV0Tm-PX(x"><value name="pause"><shadow type="timePicker" id="QD,LI!s}O%nz?h$.8=7w"><field name="ms">100</field></shadow></value></block></next></block></next></block></statement></block></xml>