-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.blocks
More file actions
1 lines (1 loc) · 8.01 KB
/
main.blocks
File metadata and controls
1 lines (1 loc) · 8.01 KB
1
<xml xmlns="https://developers.google.com/blockly/xml"><variables><variable id="Cuxr!Wse]D=CqdtK%AS#">KeyValue</variable><variable id="+-FDz`=yb!0$3Lj,P:rk">index</variable></variables><block type="pxt-on-start" id="bUhnaeNur~o2Dct;F5Se" x="0" y="17"><statement name="HANDLER"><block type="pxt_controls_for" id="^[OW/:%Bvf|Igo^uEf71"><value name="TO"><shadow type="math_whole_number"><field name="NUM">0</field></shadow><block type="math_number" id=")M17@6*LbboVSO`2h}ym"><field name="NUM">9</field></block></value><value name="VAR"><shadow type="variables_get_reporter" id="pu4+Ua7W@kD+jnblb2Yh"><field name="VAR" id="+-FDz`=yb!0$3Lj,P:rk">index</field></shadow></value><statement name="DO"><block type="device_show_number" id="I-EMvLIm,rr@GaTD6V5i"><value name="number"><block type="math_arithmetic" id="S$2-xyG2qhU-8(v8Fuie"><field name="OP">MINUS</field><value name="A"><shadow type="math_number" id="{%Le}K3+m5JOo{5^/5Ux"><field name="NUM">9</field></shadow></value><value name="B"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="B^RY6(Dg=XFI#I8fv]6i"><field name="VAR" id="+-FDz`=yb!0$3Lj,P:rk">index</field></block></value></block></value></block></statement><next><block type="playMelody" id="JV!kz7|aCV4#J46]J5mm"><value name="melody"><shadow type="melody_editor" id="SF,NOw*+.7gK#j]O`=;V"><field name="melody">"B A G A F A G F "</field></shadow></value><value name="tempo"><shadow type="math_number_minmax" id="NW;mZF!lyF(tN|sDzUOZ"><mutation min="40" max="500" label="Number" precision="0"/><field name="SLIDER">300</field></shadow></value><next><block type="device_show_leds" id="G9m+joLd3[w~t52G4o{R"><field name="LEDS">` . . . . . . . . . . . . . . . . . . . . . . . . . `</field></block></next></block></next></block></statement></block><block type="device_button_event" id="9%Wx)oFx*$g(L_rAs:3T" x="474" y="0"><field name="NAME">Button.A</field><statement name="HANDLER"><block type="controls_if" id=")W(RrtWIwN@mPcH=Z+OA"><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="j++dar!-x7f,1%M,UYQz"><field name="OP">GT</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="zC#l3K,5%![CvpmQ^ZZ1"><field name="VAR" id="Cuxr!Wse]D=CqdtK%AS#">KeyValue</field></block></value><value name="B"><shadow type="math_number" id="n};zCL%~kF|Tf3+,y9r8"><field name="NUM">0</field></shadow></value></block></value><statement name="DO0"><block type="variables_set" id=":$X_C!{*x[f%z!1M.3]@"><field name="VAR" id="Cuxr!Wse]D=CqdtK%AS#">KeyValue</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="math_arithmetic" id="Zg|?=|auo;)?UbUSE^Sn"><field name="OP">MINUS</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="$%cv/K[o(ceCgrkNC`OR"><field name="VAR" id="Cuxr!Wse]D=CqdtK%AS#">KeyValue</field></block></value><value name="B"><shadow type="math_number" id="*Q./|LFSES,/OFMo[.)D"><field name="NUM">1</field></shadow></value></block></value></block></statement><next><block type="device_show_number" id="3m~/LyLK:VWnc=6*?;xD"><value name="number"><block type="variables_get" id="(873Q8D1$/Qnk)_:-omD"><field name="VAR" id="Cuxr!Wse]D=CqdtK%AS#">KeyValue</field></block></value></block></next></block></statement></block><block type="device_button_event" id="#$JQpIW#|]i:_O`pc#vz" x="1008" y="79"><field name="NAME">Button.AB</field><statement name="HANDLER"><block type="variables_set" id="NXq/u#bJ~BKz2#hdFx{Z"><field name="VAR" id="Cuxr!Wse]D=CqdtK%AS#">KeyValue</field><value name="VALUE"><shadow type="math_number" id="tq]WI425o2Sm.[xXoBfw"><field name="NUM">0</field></shadow></value><next><block type="device_show_number" id="w*.CO)x}@nu[)#E25gfk"><value name="number"><block type="variables_get" id="b-h%[{BLusj7iB{a!XGl"><field name="VAR" id="Cuxr!Wse]D=CqdtK%AS#">KeyValue</field></block></value></block></next></block></statement></block><block type="device_button_event" id="7{0,dtuF~5$JDV4ByQ[o" x="455" y="292"><field name="NAME">Button.B</field><statement name="HANDLER"><block type="controls_if" id="/?d_*(gRCfm/h,BmhfN$"><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="*}8g_/ARoF6$_=3=}7jW"><field name="OP">LT</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="dOlgZLM+5$D{Xn!l):/@"><field name="VAR" id="Cuxr!Wse]D=CqdtK%AS#">KeyValue</field></block></value><value name="B"><shadow type="math_number" id="i!8Zypd0]R6RF:2?*%|E"><field name="NUM">9</field></shadow></value></block></value><statement name="DO0"><block type="variables_set" id=":*iZT.xby8_9j-anc|6#"><field name="VAR" id="Cuxr!Wse]D=CqdtK%AS#">KeyValue</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="math_arithmetic" id="@DLqFWWP/NAUJ!-Qm]ft"><field name="OP">ADD</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="GN@]z5I*/0@YQd`WPP70"><field name="VAR" id="Cuxr!Wse]D=CqdtK%AS#">KeyValue</field></block></value><value name="B"><shadow type="math_number" id="]DbFiYtxJNr!:k7+@+?z"><field name="NUM">1</field></shadow></value></block></value></block></statement><next><block type="device_show_number" id="1(sRfD9%2]nGu~5=y%ff"><value name="number"><block type="variables_get" id="w_WW!bHdBG75cM;qg^[J"><field name="VAR" id="Cuxr!Wse]D=CqdtK%AS#">KeyValue</field></block></value></block></next></block></statement></block><block type="device_forever" id="$oY_gf#px[7l=G3.n~*E" x="21" y="580"><statement name="HANDLER"><block type="controls_if" id="oK_s|1#?X=|EIp^qo1AG"><mutation else="1"/><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="_s!5}Y3%Q7|i98*tX1-}"><field name="OP">EQ</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="math_modulo" id="BzxO=ziqLl)Ol.0fYOIF"><value name="DIVIDEND"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="a1_K03XO$47g1?wlma(H"><field name="VAR" id="Cuxr!Wse]D=CqdtK%AS#">KeyValue</field></block></value><value name="DIVISOR"><shadow type="math_number" id="mob33KP}6l9hk#RLn:d["><field name="NUM">2</field></shadow></value></block></value><value name="B"><shadow type="math_number" id="hWJ8jG+_?VA28[08NBFp"><field name="NUM">0</field></shadow></value></block></value><statement name="DO0"><block type="device_set_brightness" id="?./lwLJN,^C`kQiE;X#{"><value name="value"><shadow type="math_number_minmax" id="q0V9yoj]2DRt)bt!AL~r"><mutation min="0" max="255" label="Number" precision="0"/><field name="SLIDER">128</field></shadow></value></block></statement><statement name="ELSE"><block type="device_set_brightness" id="g;u%qPffQU)RIfQA@u$r"><value name="value"><shadow type="math_number_minmax" id="z#9r{-uWtms65)]i~CCS"><mutation min="0" max="255" label="Number" precision="0"/><field name="SLIDER">255</field></shadow></value></block></statement></block></statement></block><block type="device_gesture_event" id="M^)c4X(gQ#`=O_`2jP_M" x="843" y="656"><field name="NAME">Gesture.Shake</field><statement name="HANDLER"><block type="variables_set" id="mgb)`}@$wla~4S@$j9~d"><field name="VAR" id="Cuxr!Wse]D=CqdtK%AS#">KeyValue</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="device_random" id="OikrF;Qtj|EjS6hBeS5{"><value name="min"><shadow type="math_number" id="cgV^/B*$I{%.HBR{5AXf"><field name="NUM">0</field></shadow></value><value name="limit"><shadow type="math_number" id="]db{,6RIHWeOmp]e0:k;"><field name="NUM">10</field></shadow></value></block></value><next><block type="device_show_number" id="qh0,=IDPF=EAnK5)~mI{"><value name="number"><block type="variables_get" id="F0i-mL-/d8@{Ag](K/pw"><field name="VAR" id="Cuxr!Wse]D=CqdtK%AS#">KeyValue</field></block></value></block></next></block></statement></block></xml>