-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.blocks
1 lines (1 loc) · 4.35 KB
/
main.blocks
1
<xml xmlns="https://developers.google.com/blockly/xml"><block type="pxt-on-start" id="QA=%Kyt%|c=@9Zc+Y!y9" x="0" y="0"><statement name="HANDLER"><block type="device_set_pull" id="R;4]I.W{Y)cz1lgRjG9/"><field name="pin">DigitalPin.P1</field><field name="pull">PinPullMode.PullUp</field><next><block type="synth_set_volume" id="4i+%rZj#}{]T+nl6*t{("><value name="volume"><shadow type="math_number_minmax" id="al3{oIs({B?~/]}BM!b3"><mutation min="0" max="255" label="Number" precision="0"/><field name="SLIDER">255</field></shadow></value></block></next></block></statement></block><block type="device_forever" id="0lDZKq5y3*,x5I/8Fv2f" x="383" y="0"><statement name="HANDLER"><block type="device_set_servo_pin" id="(s^nxKe=btf,6g|Q1bUS"><field name="name">AnalogPin.P1</field><value name="value"><shadow type="math_number_minmax"><mutation min="0" max="180"/><field name="SLIDER">0</field></shadow><block type="game_score" id="6Ur4vV=b{JA)@zMv[p^4"/></value><next><block type="controls_if" id="yKif[.;e$_7H|06Tv.0C"><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="tlzcX]7@|lK-:**X@u8|"><field name="OP">EQ</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="device_get_digital_pin" id="{r34y.N,(#xe(5AhEqKe"><field name="name">DigitalPin.P1</field></block></value><value name="B"><shadow type="math_number" id="|R^X773la7=vJs6w@9*f"><field name="NUM">0</field></shadow></value></block></value><statement name="DO0"><block type="game_add_score" id="NK*Y_ugFe@Td}bMx2vT9"><value name="points"><shadow type="math_number" id="j{_?v*BuI,4M?qs?buzD"><field name="NUM">1</field></shadow></value></block></statement><next><block type="controls_if" id="vn7iz#)3tecQbau7Gfv%"><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="^w|[m#E3bm0)9ZJ6d}#8"><field name="OP">EQ</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="game_score" id="!MFK=+%~UlNod9_UlZ_{"/></value><value name="B"><shadow type="math_number" id="itS]5;2j$m,h^M`f9L,."><field name="NUM">50</field></shadow></value></block></value><statement name="DO0"><block type="device_play_note" id="Pds;[iEGpP7Bk,{^)zLg"><value name="note"><shadow type="device_note" id="M7HQv_cKb@9UfOL/c7vx"><field name="name">262</field></shadow></value><value name="duration"><shadow type="device_beat" id="#VLd_RX-osq/L;DPCM;s"><field name="fraction">BeatFraction.Whole</field></shadow></value></block></statement><next><block type="device_plot_bar_graph" id="g/+r3hB5#oWGh#G462,z"><value name="value"><block type="game_score" id="#}P4kL![xeWjwtvZ~?LQ"/></value><value name="high"><shadow type="math_number" id="-8O2bd/C[f0ChhQq:pRb"><field name="NUM">50</field></shadow></value><next><block type="controls_if" id="Q1t-p/{lcGv9Y*7N:7nj"><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="ta}!KL#(OY@Coa!]N/Tp"><field name="OP">LT</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="device_get_analog_pin" id="df]`yZGRa3xd9Q}[qanS"><field name="name">AnalogPin.P1</field></block></value><value name="B"><shadow type="math_number" id=",}+VIVn02c`hA4!h,c?:"><field name="NUM">10</field></shadow></value></block></value><statement name="DO0"><block type="game_set_score" id="=K4d0$csTOxWY59L{34k"><value name="points"><block type="math_arithmetic" id="nj?7.3_miBxax)xt7E=9"><field name="OP">MINUS</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="game_score" id="yC*R_k`s/12.EolN242|"/></value><value name="B"><shadow type="math_number" id="DL1SZ{Ep(~3DNDLz`_$#"><field name="NUM">1</field></shadow></value></block></value></block></statement></block></next></block></next></block></next></block></next></block></statement></block><block type="device_button_event" id="6~88#Q+#GAaCteN5}Y|Q" x="969" y="0"><field name="NAME">Button.A</field><statement name="HANDLER"><block type="device_show_number" id="b..4SHc|YCOw2n_*VB$8"><value name="number"><block type="game_score" id="MgrT=rR,51T|9xtbC^pT"/></value><next><block type="device_pause" id="?d3^|@22]S;L{(C]#mg="><value name="pause"><shadow type="timePicker" id="5fJw`d$bHMp#Yl(DixmT"><field name="ms">2000</field></shadow></value></block></next></block></statement></block></xml>