Files
mixly3/boards/default/arduino_avr/examples/hxkgUtFfM9ze/_4K2GuxxmboD/giu0EYsGPyWl.mix
2024-07-21 09:30:11 +08:00

1 line
8.1 KiB
XML

<xml version="Mixly 2.0 Beta11" board="Arduino AVR@Arduino Nano w/ ATmega328P (old bootloader)" xmlns="http://www.w3.org/1999/xhtml"><block type="base_setup" id="9TWeaP:GaL:omdZ,}*sh" x="0" y="0"><statement name="DO"><block type="variables_declare" id="~fSLs~WG8FzXxg`)it7l"><field name="variables_type">global_variate</field><field name="VAR">startTime</field><field name="TYPE">int</field><value name="VALUE"><block type="math_number" id="u?RUW`0jeuWL@ld`y_Kf"><field name="NUM">0</field></block></value><next><block type="variables_declare" id="L|`||H4uI}W[mtPdm=s1"><field name="variables_type">global_variate</field><field name="VAR">endTime</field><field name="TYPE">int</field><value name="VALUE"><block type="math_number" id="Hm9822%/iJ(`PnKBz{HI"><field name="NUM">0</field></block></value><next><block type="variables_declare" id="z4]0}W/`DU0[8Yhpf~7F"><field name="variables_type">global_variate</field><field name="VAR">time</field><field name="TYPE">int</field><value name="VALUE"><block type="math_number" id="vcM=V4KGBBZ$[k`tO$fX"><field name="NUM">0</field></block></value><next><block type="controls_attachPinInterrupt" id="1ENsN;H@./bpy6Wc9hlu"><field name="mode">RISING</field><value name="PIN"><shadow type="pins_digital" id=")$`_4Jq*%[#R5!%*}}y="><field name="PIN">10</field></shadow></value><statement name="DO"><block type="controls_notone" id="8mJr$IE?)c~2,zdl|k+q"><value name="PIN"><shadow type="pins_digital" id="!#6dNOi!(tAFK1XN,|*F"><field name="PIN">8</field></shadow></value></block></statement></block></next></block></next></block></next></block></statement></block><block type="controls_if" id="Rz}g$DsvS(E:3[.7@Zy," x="0" y="232"><value name="IF0"><block type="logic_negate" id="JWV6%FV-Ob,9MGz6q3?!"><value name="BOOL"><block type="inout_digital_read2" id="K^q3%B*_F]/-v/^B[.I~"><value name="PIN"><shadow type="pins_digital" id="kvImWIs@B./M]LMat)`@"><field name="PIN">10</field></shadow></value></block></value></block></value><statement name="DO0"><block type="variables_set" id="/qCP$DibTb9N6eUbr*_k"><field name="VAR">startTime</field><value name="VALUE"><block type="controls_millis" id="?H!E2y5))DGEv2GT!n$("><field name="UNIT">millis</field></block></value><next><block type="controls_whileUntil" id="X}r7=8qKNkB`w~5}4Jy|"><field name="MODE">WHILE</field><value name="BOOL"><shadow xmlns="http://www.w3.org/1999/xhtml" type="logic_boolean" id="A7o|QHWEBiQ~e=UNvU4."><field name="BOOL">TRUE</field></shadow><block type="logic_negate" id="]l0R)!LB#6FtI0qPXUjs"><value name="BOOL"><block type="inout_digital_read2" id=",YA4p5xP676F-;ZrT`ez"><value name="PIN"><shadow type="pins_digital" id="wi?o@0%NAH{(qa?7OdCb"><field name="PIN">10</field></shadow></value></block></value></block></value><statement name="DO"><block type="variables_set" id="zWNOyA-HqqaY_yS/Y`$,"><field name="VAR">endTime</field><value name="VALUE"><block type="controls_millis" id="$fYsD8]:@ztQT=N8;u$v"><field name="UNIT">millis</field></block></value><next><block type="variables_set" id="WmKmMO1a~jR]Q+34GS|2"><field name="VAR">time</field><value name="VALUE"><block type="math_arithmetic" id="y.T?VD(m,L;`M$ZkaMga"><field name="OP">MINUS</field><value name="A"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="d@~O`@|d{kX@)P0P4Vo$"><field name="NUM">1</field></shadow><block type="variables_get" id="i3n*Dfc||h`s^zf5?z/c"><field name="VAR">endTime</field></block></value><value name="B"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="b*Kjm_K+CQw#AP!AU`oO"><field name="NUM">1</field></shadow><block type="variables_get" id="_/22gS3:NsKa~KQz%[+#"><field name="VAR">startTime</field></block></value></block></value><next><block type="controls_if" id="^#d*f6zNSSE1@xN*%1@C"><mutation xmlns="http://www.w3.org/1999/xhtml" elseif="1"></mutation><value name="IF0"><block type="logic_operation" id="8Tg]gyaw8xL;BhZH$q?_"><field name="OP">AND</field><value name="A"><block type="logic_compare" id="#aG$W1:GZszR)cW=Au.H"><field name="OP">GTE</field><value name="A"><block type="variables_get" id="6SI:@BX5h!LCAM;Ge^$:"><field name="VAR">time</field></block></value><value name="B"><block type="math_number" id="g`Ja1:=717Nn.DIe)[I?"><field name="NUM">5000</field></block></value></block></value><value name="B"><block type="logic_compare" id="Wk]bEN8t@~2ENab_g;^_"><field name="OP">LT</field><value name="A"><block type="variables_get" id="z./:;mhqo8G.~at159=|"><field name="VAR">time</field></block></value><value name="B"><block type="math_number" id="U/7EZ31*Z!zBloi!QVIM"><field name="NUM">10000</field></block></value></block></value></block></value><statement name="DO0"><block type="procedures_callnoreturn" id="g=HO^61y6BF)17E)4*C,"><mutation xmlns="http://www.w3.org/1999/xhtml" name="alarm"><arg name="times"></arg><arg name="delay"></arg></mutation><value name="ARG0"><block type="math_number" id="1t94{j/~:%Qb-Pus{Ec,"><field name="NUM">5</field></block></value><value name="ARG1"><block type="math_number" id="_Kq-naA*(;AR{aL9Cdfd"><field name="NUM">500</field></block></value></block></statement><value name="IF1"><block type="logic_compare" id="R4yE/NNAlqMy[)HEgMZt"><field name="OP">GTE</field><value name="A"><block type="variables_get" id="L:0XQx3W?n.*Fqv.g~P?"><field name="VAR">time</field></block></value><value name="B"><block type="math_number" id="|[I:0Uh~C6Ow~p40B1Yn"><field name="NUM">10</field></block></value></block></value><statement name="DO1"><block type="procedures_callnoreturn" id="Rn,:`:l8]qehBuSq8#[U"><mutation xmlns="http://www.w3.org/1999/xhtml" name="alarm"><arg name="times"></arg><arg name="delay"></arg></mutation><value name="ARG0"><block type="math_number" id="}5e%_LT.%$pdw@ld~O=q"><field name="NUM">5</field></block></value><value name="ARG1"><block type="math_number" id="YOX-1rDAa~:yvVg=mq`%"><field name="NUM">100</field></block></value></block></statement></block></next></block></next></block></statement></block></next></block></statement></block><block type="procedures_defnoreturn" id="+F-=:3K1jM$`n8R7yMSB" x="0" y="705"><mutation xmlns="http://www.w3.org/1999/xhtml"><arg name="times" vartype="int"></arg><arg name="delay" vartype="int"></arg></mutation><field name="NAME">alarm</field><statement name="STACK"><block type="controls_for" id="$ZM996pYL`BeW.z.#p/O"><field name="VAR">i</field><value name="FROM"><shadow type="math_number" id=";;z%h;J[EzLm]uRuq*!9"><field name="NUM">1</field></shadow></value><value name="TO"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="BXzz3OHl54LLcV{A5KD-"><field name="NUM">5</field></shadow><block type="variables_get" id="BNv9{0b#HxMG%,S7]P`,"><field name="VAR">times</field></block></value><value name="STEP"><shadow type="math_number" id="{fU`r84Ej]lU/7b;NB$A"><field name="NUM">1</field></shadow></value><statement name="DO"><block type="controls_tone" id="OMFg{@3).P%R!rSfyO6+"><value name="PIN"><shadow type="pins_digital" id="^cB4B1cV)+?0oe8+9j1e"><field name="PIN">8</field></shadow></value><value name="FREQUENCY"><shadow type="tone_notes" id="q],}cf90IpR+WYS{me|v"><field name="STAT">131</field></shadow></value><next><block type="controls_delay" id=")+EL#lll#-PP(CZ]*{q%"><field name="UNIT">delay</field><value name="DELAY_TIME"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="s@+B9{hl.%=in,5`_3cW"><field name="NUM">500</field></shadow><block type="variables_get" id="bH3.~UbbRpy)r?zE=T%c"><field name="VAR">delay</field></block></value><next><block type="controls_notone" id="SFoZkE#Wf;ZU;if;YN"><value name="PIN"><shadow type="pins_digital" id="[](,Z83QOdhwvw|R:sil"><field name="PIN">8</field></shadow></value><next><block type="controls_delay" id="DuoPCnC*Chm20z6o=Y72"><field name="UNIT">delay</field><value name="DELAY_TIME"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="Qm^wuR+]Yxkp#zFc/gv*"><field name="NUM">500</field></shadow><block type="variables_get" id="+{t:CY}+:+ISYLl@:hcr"><field name="VAR">delay</field></block></value></block></next></block></next></block></next></block></statement><next><block type="controls_delay" id="4FjR+sUke5ts,u7bcaX:"><field name="UNIT">delay</field><value name="DELAY_TIME"><shadow type="math_number" id="?Dt0@kr{rOUcIgH|s1%y"><field name="NUM">2000</field></shadow></value></block></next></block></statement></block></xml>