1 line
7.5 KiB
XML
1 line
7.5 KiB
XML
<xml version="Mixly 2.0 rc4" board="MixGo CE@MixGo CE"><block type="controls_whileUntil" id="5#XDsAdZ9oKad#S#,6+N" x="-2173" y="-385"><field name="MODE">WHILE</field><value name="BOOL"><shadow type="logic_boolean" id="0S3]~?97=B(-/m_wC({M"><field name="BOOL">TRUE</field></shadow></value><statement name="DO"><block type="controls_if" id="59Vi9Rf8G1cUqI9GD.8="><value name="IF0"><block type="sensor_mixgo_button_was_pressed" id="8/F.hZ0LJo5RzCYQ2!+5"><value name="btn"><shadow type="pins_button" id="gr]U.JX8T+:,taHq+c)d"><field name="PIN">B1key</field></shadow></value></block></value><statement name="DO0"><block type="actuator_led_bright" id="AAiRMz_[=:U+[_S`Wq_6"><value name="led"><shadow type="number" id="Df9C?=z^,7!8a{!5^Ckk"><field name="op">1</field></shadow></value><value name="bright"><shadow type="ledswitch" id="RMiSlO61}HUAWOc)Jp6)"><field name="flag">1</field></shadow></value><next><block type="storage_fileopen" id="1T!7-[I)?-7RH9x0w{j9"><field name="MODE">w</field><value name="FILENAME"><shadow type="text" id="4oQx}NZJ[UO33:t+2/eW"><field name="TEXT">/acc.txt</field></shadow></value><value name="FILE"><shadow type="variables_get" id="-WFWZ9hbW.NozT@S/kqF"><field name="VAR">f</field></shadow></value><next><block type="controls_forEach" id=",qZ.F7lPKEH$6hQ{;?6k"><value name="LIST"><shadow type="list_many_input" id="2[Ft:FT/*cyUHiq~R)RI"><field name="CONTENT">0,1,2,3</field></shadow><block type="controls_range" id="X4Jn/Pe$dI3Rt@Uu{,+."><value name="FROM"><shadow type="math_number" id="knFaf59D=gw2(zt=.8}V"><field name="NUM">0</field></shadow></value><value name="TO"><shadow type="math_number" id="VUg~:S-kSwkQ4FEo$v[~"><field name="NUM">100</field></shadow></value><value name="STEP"><shadow type="math_number" id="b:euVJ,5~nx$L8,]kfVd"><field name="NUM">1</field></shadow></value></block></value><value name="VAR"><shadow type="variables_get" id="N4p{9blU4H=p(aPwR9b+"><field name="VAR">x</field></shadow></value><statement name="DO"><block type="variables_set" id="QJ5C^bzVQcX]rNrk=ekS"><field name="VAR">d</field><value name="VALUE"><block type="text_format_noreturn" id="OT}$XG?ZN7+goCz,0G:Z"><mutation items="3"></mutation><value name="VAR"><shadow type="text" id="vsCa:}8(Xj]/vjpE4c.I"><field name="TEXT">{},{},{}</field></shadow></value><value name="ADD0"><block type="sensor_get_acceleration" id="!nk)wi)TB?.^#[1}/v]]"><field name="key">[0]</field></block></value><value name="ADD1"><block type="sensor_get_acceleration" id="LVU(HV#.Eu0v;e:4u?fv"><field name="key">[1]</field></block></value><value name="ADD2"><block type="sensor_get_acceleration" id="C3CZUkxWVO)HX-*Gvuok"><field name="key">[2]</field></block></value></block></value><next><block type="controls_forEach" id="W#64?j0S)|Nf4`C_yP:g"><value name="LIST"><shadow type="list_many_input" id="wK]pnB7ge1dJR=:vx)C5"><field name="CONTENT">0,1,2,3</field></shadow><block type="controls_range" id="5~4#)l!_g9S$2t~T`Z#`"><value name="FROM"><shadow type="math_number" id="S-u)vZ_4V2Nh:[{D]5X7"><field name="NUM">7</field></shadow></value><value name="TO"><shadow type="math_number" id="{#SV*4doiA0aq:jS`OV`"><field name="NUM">5</field></shadow><block type="text_to_number" id="y#kMbO0p}-a(H6LlV]}]"><field name="TOWHAT">int</field><value name="VAR"><shadow type="variables_get" id="M_wGlJBoJ}[:aU!qCs?n"><field name="VAR">x</field></shadow><block type="math_map" id="900NUbxtWaFtG*.P0uV!"><value name="NUM"><shadow type="math_number" id="|#vE(i,OSzCkOH3~rF3}"><field name="NUM">50</field></shadow><block type="sensor_get_acceleration" id="og_U;9y{t$yH_KoNFb`h"><field name="key">strength</field></block></value><value name="fromLow"><shadow type="math_number" id="tmAzxZcDn.C869D_{LY["><field name="NUM">0</field></shadow></value><value name="fromHigh"><shadow type="math_number" id="qul1Taq[GtuoZ*Olu?.u"><field name="NUM">10</field></shadow></value><value name="toLow"><shadow type="math_number" id="|L6ZOm4)AdK!S[5fs@YH"><field name="NUM">7</field></shadow></value><value name="toHigh"><shadow type="math_number" id="fFNFG`?GTtevDbF:(1/T"><field name="NUM">0</field></shadow></value></block></value></block></value><value name="STEP"><shadow type="math_number" id="KVqDmpl?WMKW+/)/Sl0X"><field name="NUM">-1</field></shadow></value></block></value><value name="VAR"><shadow type="variables_get" id="[=KjWH=5)g*jU{$}oNJ]"><field name="VAR">i</field></shadow></value><statement name="DO"><block type="display_bright_point" id="m^McZZ-1#U4W9:clPmza"><value name="x"><shadow type="pins_exlcdh" id="k9*xT#ot0q;k;Q;3I/u0"><field name="PIN">15</field></shadow></value><value name="y"><shadow type="pins_exlcdv" id="H,l90NUY=VN~1{QSLGVe"><field name="PIN">0</field></shadow><block type="variables_get" id="G{hf:8p=WD;Jo,FUA~!t"><field name="VAR">i</field></block></value><value name="STAT"><shadow type="display_onoff" id="k?4]2z)UNz2h?35w7!38"><field name="ONOFF">ON</field></shadow></value></block></statement><next><block type="display_shift" id="(fGSIg~_|$Ed6KfI)=^;"><field name="OP">shift_left</field><value name="val"><shadow type="math_number" id="-NXbcU#o_Gx|^e=@y.)j"><field name="NUM">1</field></shadow></value><next><block type="storage_file_write" id="B_oeOf];Qi/yV+/|s5#p"><value name="data"><shadow type="text" id="^L_-R|-05G4EJ:qe}B~e"><field name="TEXT">Mixly</field></shadow><block type="variables_get" id="TxYb^o7+V2gmzX0[A4,9"><field name="VAR">d</field></block></value><value name="FILE"><shadow type="variables_get" id="5z-(sq^|h1$]x}B`MnAR"><field name="VAR">f</field></shadow></value><next><block type="storage_file_write" id="[aG3~|st.GKJBLmlcx^["><value name="data"><shadow type="text" id="[[g.nX~PZ5}oH0emt{-R"><field name="TEXT">Mixly</field></shadow><block type="ascii_to_char" id="dXSw]fY;c_^iStt:/OVp"><value name="VAR"><shadow type="math_number" id="sJfl{v?s$+mqfq2zkKOQ"><field name="NUM">10</field></shadow></value></block></value><value name="FILE"><shadow type="variables_get" id="Xk9dwneFDk$)=P-Ahb8|"><field name="VAR">f</field></shadow></value></block></next></block></next></block></next></block></next></block></statement><next><block type="storage_close_file" id="PUC@B*i_f*(z57iKYWt+"><value name="FILE"><shadow type="variables_get" id="?RII-k=n|SRc(s8Ws}jW"><field name="VAR">f</field></shadow></value><next><block type="actuator_led_bright" id="$hQr4yl0ACw6?6om/c*`"><value name="led"><shadow type="number" id="M`qBEN[s+*L)N;rHgBQS"><field name="op">1</field></shadow></value><value name="bright"><shadow type="ledswitch" id="nFf#RD6U;uUn`}jv2A=!"><field name="flag">0</field></shadow></value></block></next></block></next></block></next></block></next></block></statement></block></statement></block></xml><config>{}</config><code>aW1wb3J0IG1peGdvX2NlCmZyb20gbWl4Z29fY2UgaW1wb3J0IG9uYm9hcmRfbGVkCmZyb20gbWl4Z29fY2UgaW1wb3J0IG9uYm9hcmRfYWNjCmZyb20gbWl4cHkgaW1wb3J0IG1hdGhfbWFwCmZyb20gbWl4Z29fY2UgaW1wb3J0IG9uYm9hcmRfbWF0cml4CgoKd2hpbGUgVHJ1ZToKICAgIGlmIG1peGdvX2NlLkIxa2V5Lndhc19wcmVzc2VkKCk6CiAgICAgICAgb25ib2FyZF9sZWQuc2V0b25vZmYoMSwxKQogICAgICAgIGYgPSBvcGVuKCcvYWNjLnR4dCcsICd3JykKICAgICAgICBmb3IgeCBpbiByYW5nZSgwLCAxMDAsIDEpOgogICAgICAgICAgICBkID0gJ3t9LHt9LHt9Jy5mb3JtYXQob25ib2FyZF9hY2MuYWNjZWxlcmF0aW9uKClbMF0sIG9uYm9hcmRfYWNjLmFjY2VsZXJhdGlvbigpWzFdLCBvbmJvYXJkX2FjYy5hY2NlbGVyYXRpb24oKVsyXSkKICAgICAgICAgICAgZm9yIGkgaW4gcmFuZ2UoNywgaW50KChtYXRoX21hcChvbmJvYXJkX2FjYy5zdHJlbmd0aCgpLCAwLCAxMCwgNywgMCkpKSwgLTEpOgogICAgICAgICAgICAgICAgb25ib2FyZF9tYXRyaXgucGl4ZWwoaW50KDE1KSwgaW50KGkpLCAxKQogICAgICAgICAgICAgICAgb25ib2FyZF9tYXRyaXguc2hvdygpCiAgICAgICAgICAgIG9uYm9hcmRfbWF0cml4LnNoaWZ0X2xlZnQoMSkKICAgICAgICAgICAgZi53cml0ZShkKQogICAgICAgICAgICBmLndyaXRlKGNocigxMCkpCiAgICAgICAgZi5jbG9zZSgpCiAgICAgICAgb25ib2FyZF9sZWQuc2V0b25vZmYoMSwwKQo=</code> |