-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.blocks
1 lines (1 loc) · 7.55 KB
/
main.blocks
1
<xml xmlns="https://developers.google.com/blockly/xml"><variables><variable id="0+Ntw9k[?hn#R!F)+%s[">position</variable></variables><block type="pxt-on-start" id="nV+H?TmGQ_DRRSiqau$-" x="0" y="0"><statement name="HANDLER"><block type="variables_set" id="|NB}nw{0Aog:!5+?adiW"><field name="VAR" id="0+Ntw9k[?hn#R!F)+%s[">position</field><value name="VALUE"><shadow type="math_number" id="]/%;grhC7@%K`@puAS!?"><field name="NUM">0</field></shadow></value></block></statement></block><block type="device_button_event" id="UaKXfv:B:CF(:Z5)PIo)" x="304" y="-4"><field name="NAME">Button.A</field><statement name="HANDLER"><block type="variables_change" id="Ey(H:-AQrdC_z1#A!Kj8"><field name="VAR" id="0+Ntw9k[?hn#R!F)+%s[">position</field><value name="VALUE"><shadow type="math_number" id=")Yr=Y)Y;BYUE:}stwQeA"><field name="NUM">-10</field></shadow></value><next><block type="device_play_note" id="4I.b}]u.{:!D*O;%-%UB"><value name="note"><shadow type="device_note" id="qq.o/]{lfL-aTdJ*XB6q"><field name="name">494</field></shadow></value><value name="duration"><shadow type="device_beat" id="AtEL.k6tB#~lI5V4Fm_*"><field name="fraction">BeatFraction.Sixteenth</field></shadow></value><next><block type="sb_setRgbLedColor" id=",oLuZbHv7Z5q?k2yg?w$"><value name="rgbLed"><shadow type="sb_rgbLed" id="V,351cze;wa~e(JWf1)#"><field name="label">SBRgbLed.RgbLedA</field></shadow></value><value name="color"><shadow type="sb_color" id="ri-SO0CqK44P^J4xq20Y"><field name="label">SBColor.Green</field></shadow></value><next><block type="controls_if" id="DM|u5.6Mr)8Z_E}B9o,L"><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="7`WvyM,ep4uzK`*4[BrA"><field name="OP">LTE</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="QhWiMk8UMt;2eusT#7R9"><field name="VAR" id="0+Ntw9k[?hn#R!F)+%s[">position</field></block></value><value name="B"><shadow type="math_number" id="`%}~Z}${=VvUNLNFe4f$"><field name="NUM">0</field></shadow></value></block></value><statement name="DO0"><block type="variables_set" id="C(=`T$THh6dJ!)L1b=v@"><field name="VAR" id="0+Ntw9k[?hn#R!F)+%s[">position</field><value name="VALUE"><shadow type="math_number" id="?0zN=4HRli{B3`%$[P`Z"><field name="NUM">0</field></shadow></value><next><block type="sb_setRgbLedColor" id="wK7nE)tpJh8pC8;6,SzW"><value name="rgbLed"><shadow type="sb_rgbLed" id="JbxiL^}+}UBurl`qn(4/"><field name="label">SBRgbLed.RgbLedA</field></shadow></value><value name="color"><shadow type="sb_color" id="[-Id9rd4vcBP7kIIBmxm"><field name="label">SBColor.Red</field></shadow></value></block></next></block></statement></block></next></block></next></block></next></block></statement></block><block type="device_button_event" id="e_wV{1=LDbz0Rpw-Aajf" x="305" y="421"><field name="NAME">Button.B</field><statement name="HANDLER"><block type="variables_change" id="gFFp5Q;UqXbg-52LA/`v"><field name="VAR" id="0+Ntw9k[?hn#R!F)+%s[">position</field><value name="VALUE"><shadow type="math_number" id="No(man:o:SQ2L!gj|^v}"><field name="NUM">10</field></shadow></value><next><block type="device_play_note" id="_,|Nb|jRAHZggnYSx#=x"><value name="note"><shadow type="device_note" id="P(K6w!q{_Dy3B%HWIqeX"><field name="name">440</field></shadow></value><value name="duration"><shadow type="device_beat" id="s]G//v9~[Z.Xrq4_hj08"><field name="fraction">BeatFraction.Sixteenth</field></shadow></value><next><block type="sb_setRgbLedColor" id="d;rbTK~Is/na4U5{yizX"><value name="rgbLed"><shadow type="sb_rgbLed" id="E^Q^*sJU*#N^F::=eV63"><field name="label">SBRgbLed.RgbLedB</field></shadow></value><value name="color"><shadow type="sb_color" id="7sLRPIw7SE(Kq?,7ZGZT"><field name="label">SBColor.Green</field></shadow></value><next><block type="controls_if" id="`-rbYGVaHuxAFJd5#1wc"><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="T-~F$.}|tt9psBP%6Rhq"><field name="OP">GTE</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="c=s,mElal25v(!sAc!?s"><field name="VAR" id="0+Ntw9k[?hn#R!F)+%s[">position</field></block></value><value name="B"><shadow type="math_number" id="QWSwg7}sn.I0ERd,b@zq"><field name="NUM">50</field></shadow></value></block></value><statement name="DO0"><block type="variables_set" id="ARk]u.w,AY-k}jK70|(;"><field name="VAR" id="0+Ntw9k[?hn#R!F)+%s[">position</field><value name="VALUE"><shadow type="math_number" id="]W%?8KyH+`8gJtErF@il"><field name="NUM">50</field></shadow></value><next><block type="sb_setRgbLedColor" id="IheM_NApBD.KLS50P;tt"><value name="rgbLed"><shadow type="sb_rgbLed" id="J,aksxN,WgZT%pxN;XOn"><field name="label">SBRgbLed.RgbLedB</field></shadow></value><value name="color"><shadow type="sb_color" id="KD{`e0+;2zL(HN)GAufp"><field name="label">SBColor.Red</field></shadow></value></block></next></block></statement></block></next></block></next></block></next></block></statement></block><block type="device_forever" id="Tr]Qpz$*M2A]wJ^E4=77" x="10" y="808"><statement name="HANDLER"><block type="controls_if" id="mL*b@)9EUg9$0w=KQa`/"><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_operation" id="f9#VNR,]2@~d|Nt@8/y*"><field name="OP">AND</field><value name="A"><block type="logic_compare" id="G~/`-QY3[[oRK3`w0!37"><field name="OP">GT</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="[pU#,.8!e{WpB5m$,{e8"><field name="VAR" id="0+Ntw9k[?hn#R!F)+%s[">position</field></block></value><value name="B"><shadow type="math_number" id="p6-Om9uZmIoQD@]n@|)1"><field name="NUM">0</field></shadow></value></block></value><value name="B"><block type="logic_compare" id="F^1o.ye#BOr^|vMd*]u?"><field name="OP">LT</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="v7V|w9J~`q7ZtF/nFko+"><field name="VAR" id="0+Ntw9k[?hn#R!F)+%s[">position</field></block></value><value name="B"><shadow type="math_number" id="-[Hx=KVyqUU0`!osKmko"><field name="NUM">50</field></shadow></value></block></value></block></value><statement name="DO0"><block type="sb_transitionServoPosition" id="N8)#2Xd-JO#Q%VSZ,0=l"><value name="servo"><shadow type="sb_servo" id="a8o^gb!nAX|q7?=LCv!d"><field name="label">SBServo.ServoA</field></shadow></value><value name="position"><shadow type="math_number_minmax"><mutation min="0" max="100" label="Position" precision="0"/><field name="SLIDER">100</field></shadow><block type="variables_get" id="~3YJ9!zDLZJ$R!#}yb/~"><field name="VAR" id="0+Ntw9k[?hn#R!F)+%s[">position</field></block></value><value name="duration"><shadow type="math_number" id="N272%]G$W8;k]gtyZ4x]"><field name="NUM">1</field></shadow></value><value name="easing"><shadow type="sb_easing" id="P),,;B1TwIZuJLU40Wet"><field name="label">SBEasing.SineInOut</field></shadow></value><next><block type="sb_setRgbLedColor" id="pz]!bKt{S4Ey%ye+c4T^"><value name="rgbLed"><shadow type="sb_rgbLed" id="jCr5h[X?lnl(RK)Je[#("><field name="label">SBRgbLed.RgbLedA</field></shadow></value><value name="color"><shadow type="sb_color" id="1LQMn34b0z7RQ+|0Yv]U"><field name="label">SBColor.Black</field></shadow></value><next><block type="sb_setRgbLedColor" id="?;)}xoKf-5NkDkfo!H[A"><value name="rgbLed"><shadow type="sb_rgbLed" id="AQ].ut[MsWGkmzS0tT[J"><field name="label">SBRgbLed.RgbLedB</field></shadow></value><value name="color"><shadow type="sb_color" id="gp`l)JkD01=|Rth/gk-:"><field name="label">SBColor.Black</field></shadow></value></block></next></block></next></block></statement></block></statement></block></xml>