fix buzzer
This commit is contained in:
@@ -0,0 +1 @@
|
||||
<xml version="Mixly 2.0 Beta11" board="Arduino AVR@Arduino/Genuino Uno" xmlns="http://www.w3.org/1999/xhtml"><block type="factory_notes" id="@_vZSi+|O`lUHmLa-(nb" x="-3" y="-63"><field name="VALUE">蜂鸣器:D8,\n播放简谱1,2,3,4,5,6</field></block><block type="base_setup" id="wwxPPYs):Dc}i%;HjK4V" x="0" y="0"><statement name="DO"><block type="lists_create_with_text2" id="1:QwZ60EGbX%ZmjR6je("><field name="TYPE">float</field><field name="VAR">tonelist</field><field name="SIZE">7</field><field name="TEXT">1046.5,1174.7,1318.5,1396.9,1568,1760,1975.5</field></block></statement></block><block type="controls_for" id="5#T3-br*q7]KwlnT{gcU" x="0" y="92"><field name="VAR">i</field><value name="FROM"><shadow type="math_number" id="@X}XTH:3,giTmh?mrAVL"><field name="NUM">1</field></shadow></value><value name="TO"><shadow type="math_number" id="}),.E1NS]C/ftCitG82p"><field name="NUM">7</field></shadow></value><value name="STEP"><shadow type="math_number" id="ji%L3,pG2:vQ+AwwA{Ai"><field name="NUM">1</field></shadow></value><statement name="DO"><block type="controls_tone" id="xf[V;^WsA1f-5-!4Q@M:"><value name="PIN"><shadow type="pins_digital" id="FGXX@B/o^hezSl|qGF#+"><field name="PIN">8</field></shadow></value><value name="FREQUENCY"><shadow xmlns="http://www.w3.org/1999/xhtml" type="tone_notes" id="0gvgjrbASh_?;ClsVc9w"><field name="STAT">131</field></shadow><block type="lists_getIndex" id="T_)nxD~[:jAs!DOn57"><field name="VAR">tonelist</field><value name="AT"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="93m;T*@dHD/Gt^wPk7gt"><field name="NUM">1</field></shadow><block type="variables_get" id="(Hc(fb81-B.{;0pFQ^Rj"><field name="VAR">i</field></block></value></block></value><next><block type="base_delay" id="63[J:zWiOX%_:GdL[ZZe"><field name="UNIT">delay</field><value name="DELAY_TIME"><shadow type="math_number" id="slq60yg^!32.w:lz72j#"><field name="NUM">600</field></shadow></value><next><block type="controls_notone" id="1d(.7/H~oWm+q6,9Y+jM"><value name="PIN"><shadow type="pins_digital" id="(X5P35)7p!ti(THX/Y?A"><field name="PIN">8</field></shadow></value><next><block type="base_delay" id="drPu5[m{IV_ofNW~{T~H"><field name="UNIT">delay</field><value name="DELAY_TIME"><shadow type="math_number" id="0IJ).0U|r[LtIONMzu_."><field name="NUM">600</field></shadow></value></block></next></block></next></block></next></block></statement></block></xml>
|
||||
@@ -0,0 +1 @@
|
||||
<xml version="Mixly 2.0 Beta11" board="Arduino AVR@Arduino/Genuino Uno" xmlns="http://www.w3.org/1999/xhtml"><block type="factory_notes" id="_oz*{?yq:)}+^S)!?bq6" x="-455" y="-121"><field name="VALUE">D8连接蜂鸣器,D2连接按钮传感器\n当按钮被按下时,蜂鸣器出现“叮咚”的声音</field><next><block type="controls_if" id="3`vT9%5^7H,S9itk).i#"><value name="IF0"><block type="inout_digital_read2" id="n2NNH?-d_9?v-WIV8/wX"><value name="PIN"><shadow type="pins_digital" id="OZhetW[.b`,Y?#R:^RXO"><field name="PIN">2</field></shadow></value></block></value><statement name="DO0"><block type="controls_tone" id="DRFCX+GM([=Jqs_G6-%{"><value name="PIN"><shadow type="pins_digital" id="i(b@UKA+:/^DW0RVJ1zT"><field name="PIN">8</field></shadow></value><value name="FREQUENCY"><shadow type="tone_notes" id="!eI/,xBXlNu)Z6vFWL]s"><field name="STAT">659</field></shadow></value><next><block type="base_delay" id="5wl4w7@+h*|Z-]Y+C*m["><field name="UNIT">delay</field><value name="DELAY_TIME"><shadow type="math_number" id="n!;}FDy)~Z{mB.C+M5h*"><field name="NUM">500</field></shadow></value><next><block type="controls_tone" id="ntN_k,]FE!ThT#jGvz9#"><value name="PIN"><shadow type="pins_digital" id="@XfYJ;03::@7]gAm4cS!"><field name="PIN">8</field></shadow></value><value name="FREQUENCY"><shadow type="tone_notes" id="_T0Wl8XIf~9_7SgMieCI"><field name="STAT">532</field></shadow></value><next><block type="base_delay" id="mq=[QrQti;IXQa`oa{6f"><field name="UNIT">delay</field><value name="DELAY_TIME"><shadow type="math_number" id="tdn;2E*W|dhuB)B{B1T8"><field name="NUM">500</field></shadow></value><next><block type="controls_notone" id="`WBDU*BAkH,.=RGr_BFv"><value name="PIN"><shadow type="pins_digital" id="1hinP6eQXR7qpAAVN0Pv"><field name="PIN">8</field></shadow></value></block></next></block></next></block></next></block></next></block></statement></block></next></block></xml>
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
<xml version="Mixly 2.0 Beta11" board="Arduino AVR@Arduino/Genuino Uno" xmlns="http://www.w3.org/1999/xhtml"><block type="base_setup" id="}TdQ~3R.MECSsGHEAnpa" x="0" y="0"><statement name="DO"><block type="controls_attachInterrupt" id="xKQNHd7i4G}rWea=:U3!"><field name="mode">RISING</field><value name="PIN"><shadow type="pins_interrupt" id="E$8=9TpgDEs;xih,uEH3"><field name="PIN">2</field></shadow></value><statement name="DO"><block type="inout_digital_write2" id="y+{R2oWc^gALgOB3T/M|"><value name="PIN"><shadow type="pins_digital" id="9KZI60Ty+b4cW+HqCA*S"><field name="PIN">10</field></shadow></value><value name="STAT"><shadow type="inout_highlow" id="UmJzGpb|)!1mA]E0MYWQ"><field name="BOOL">LOW</field></shadow></value></block></statement></block></statement></block><block type="controls_if" id="u!h2NlGE~,;.-y*XIeD=" x="0" y="154"><value name="IF0"><block type="logic_negate" id="-[1.NwjOT;vB3{OT.|/9"><value name="BOOL"><block type="inout_digital_read2" id="MSfROVNo$QsPVbiDaacs"><value name="PIN"><shadow type="pins_digital" id="p%ybTU^zAg^;5XBr%mYs"><field name="PIN">4</field></shadow></value></block></value></block></value><statement name="DO0"><block type="inout_digital_write2" id="WC~iqqkeg+p-eqmMcQ4P"><value name="PIN"><shadow type="pins_digital" id="o[UPgI=e4yYN|OjAQ-)_"><field name="PIN">10</field></shadow></value><value name="STAT"><shadow type="inout_highlow" id="$I-JT)#`ASfj;jZfb!N_"><field name="BOOL">HIGH</field></shadow></value><next><block type="controls_whileUntil" id="!gu#~/JhUH!Tu+v6#a{/"><field name="MODE">WHILE</field><value name="BOOL"><block type="inout_digital_read2" id="Y3$]O/mt``D1JR{e^3$W"><value name="PIN"><shadow type="pins_digital" id="Q.8=5LV:##|/iwDX`PE("><field name="PIN">10</field></shadow></value></block></value><statement name="DO"><block type="controls_for" id="5Ik/Yv+u31AN!!G1UfZ`"><field name="VAR">i</field><value name="FROM"><shadow type="math_number" id="LMYHEW9!{ZX5^Q5yxJ|!"><field name="NUM">0</field></shadow></value><value name="TO"><shadow type="math_number" id="|1+,bwO@~S`*t(0wKHSz"><field name="NUM">180</field></shadow></value><value name="STEP"><shadow type="math_number" id="hMP*j(N~K5MEaJaCAMqV"><field name="NUM">1</field></shadow></value><statement name="DO"><block type="controls_tone" id="umr-IJ$[C(von*FSW#qO" inline="false"><value name="PIN"><shadow type="pins_digital" id="#;Ld6{C^HPaLGPUIK0(-"><field name="PIN">8</field></shadow></value><value name="FREQUENCY"><shadow xmlns="http://www.w3.org/1999/xhtml" type="tone_notes" id="2+NteE~edEVSA6S#3d@%"><field name="STAT">131</field></shadow><block type="math_arithmetic" id=";ng$tZSfnY|Tx1|?5gj+"><field name="OP">ADD</field><value name="A"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="yPv{Ms[rIavX5((jS0jp"><field name="NUM">1</field></shadow><block type="math_arithmetic" id="]SNHJ*oJYh2z!`-YSDnW"><field name="OP">MULTIPLY</field><value name="A"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="tM6NxbzNtkI|~},{M,gn"><field name="NUM">1</field></shadow><block type="math_trig" id="Zv+lXmy0%R3#I:|11Roe"><field name="OP">SIN</field><value name="NUM"><block type="variables_get" id=".`gnb-sJcq`qPweyC|8G"><field name="VAR">i</field></block></value></block></value><value name="B"><shadow type="math_number" id="^I-U{ag1h{y^OitPUpFX"><field name="NUM">1000</field></shadow></value></block></value><value name="B"><shadow type="math_number" id="k%[#,8v]OT.]z]0G{Fw:"><field name="NUM">2000</field></shadow></value></block></value><next><block type="base_delay" id="Gh?d#Ok,D)rIK7c;_[If"><field name="UNIT">delay</field><value name="DELAY_TIME"><shadow type="math_number" id="}YWb0^XG`8!5*KXsmt(-"><field name="NUM">10</field></shadow></value></block></next></block></statement><next><block type="controls_notone" id="sXtM9Z~wG4^=T+gVQ(H4"><value name="PIN"><shadow type="pins_digital" id="7I;JFARpC~@9/Pj.Y9ju"><field name="PIN">8</field></shadow></value></block></next></block></statement></block></next></block></statement></block></xml>
|
||||
@@ -0,0 +1 @@
|
||||
<xml version="Mixly 2.0 Beta11" board="Arduino AVR@Arduino/Genuino Uno" xmlns="http://www.w3.org/1999/xhtml"><block type="factory_notes" id="4TX=5*bt0*hutw{6Z$~6" x="186" y="158"><field name="VALUE">D2接灯带</field><next><block type="display_rgb_init" id="FgY/L4~-)h[5c]R6(Nse"><field name="PIN">2</field><field name="TYPE">NEO_GRB</field><value name="LEDCOUNT"><shadow type="math_number" id="bW3e${N3qDjQATq{#rSs"><field name="NUM">10</field></shadow></value><next><block type="display_rgb_Brightness" id="qa%W{.bh4m+nxi5gzbXQ"><field name="PIN">2</field><value name="Brightness"><shadow type="math_number" id="KUPBjGPL5~1_v=3Jtie="><field name="NUM">20</field></shadow></value><next><block type="controls_for" id="!lZuV3T52@dw}+nWhk%H"><field name="VAR">i</field><value name="FROM"><shadow type="math_number" id=".V@bh0e?#/c0$p}COJ=^"><field name="NUM">1</field></shadow></value><value name="TO"><shadow type="math_number" id="7Ut,$%:e?VOpKd_}b~IA"><field name="NUM">10</field></shadow></value><value name="STEP"><shadow type="math_number" id="5q~9,x,W,j9~4UDN:$k{"><field name="NUM">1</field></shadow></value><statement name="DO"><block type="display_rgb" id=")c@?fGKNYA$qjPB8S~vq"><field name="PIN">2</field><value name="_LED_"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="vqUoAnW,6Qh;y{E~}+$$"><field name="NUM">1</field></shadow><block type="variables_get" id="qnJrC(EzVv6ftJ,{znl3"><field name="VAR">i</field></block></value><value name="COLOR"><block type="RGB_color_seclet" id=":B@jgD31`[MV0%8,@Sz1"><field name="COLOR">#ff0000</field></block></value></block></statement><next><block type="display_rgb_show" id="ZxnR%5v0#FvkM=^Q[GCJ"><field name="PIN">2</field></block></next></block></next></block></next></block></next></block></xml>
|
||||
@@ -0,0 +1 @@
|
||||
<xml version="Mixly 2.0 Beta11" board="Arduino AVR@Arduino/Genuino Uno" xmlns="http://www.w3.org/1999/xhtml"><block type="factory_notes" id="R=%*GXh!~iC.,-r;iqC(" x="0" y="0"><field name="VALUE">简易MP3播放器\n模块使用软串口\n上一曲按键接在D2\n下一曲按键接在D3\n</field></block><block type="base_setup" id="d5T.@*]1AQ,ixdrzHVwC" x="0" y="145"><statement name="DO"><block type="serial_softserial" id="oHlD2nVKV[I*Se$BpDxs"><field name="serial_select">mySerial</field><value name="RX"><shadow type="pins_digital" id="en]vx#2iuT~D-S@00{La"><field name="PIN">7</field></shadow></value><value name="TX"><shadow type="pins_digital" id="74Q$g4@Oh;RCh[^W8TSL"><field name="PIN">8</field></shadow></value><next><block type="serial_begin" id="pD?ZiMd~VI3%WiQ^3if}"><field name="serial_select">mySerial</field><value name="CONTENT"><shadow type="math_number" id="k}AZT3qCD{i37C(O~6.U"><field name="NUM">9600</field></shadow></value><next><block type="arduino_dfplayer_mini_begin" id="zI!yDm8uS8J5t3*#19`R"><field name="dfplayer_name">myPlayer</field><value name="dfplayer_pin"><shadow type="arduino_dfplayer_mini_pin" id="H^Xh,=V]B0Xw6ffZo)8J"><field name="pin_type">mySerial</field></shadow></value><next><block type="arduino_dfplayer_mini_setTimeOut" id="4+FkMW8uJzD_mYNaY3IY"><field name="dfplayer_name">myPlayer</field><value name="timeout_data"><shadow type="math_number" id="#J!Kw]t:wr*J.0n[[o)Z"><field name="NUM">500</field></shadow></value><next><block type="arduino_dfplayer_mini_outputDevice" id="nIfDT3F*c@C^%#,h]A_v"><field name="dfplayer_name">myPlayer</field><value name="outputdevice_data"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number"><field name="NUM">2</field></shadow><block type="arduino_dfplayer_mini_outputDevice_type" id="Qi5/2SoWZp~#rFhGxB$,"><field name="outputdevice_type">DFPLAYER_DEVICE_SD</field></block></value><next><block type="arduino_dfplayer_mini_volume" id="bx-G|J$[oM^2?ljus18x"><field name="dfplayer_name">myPlayer</field><value name="volume_data"><shadow type="math_number" id="PnuKRi4}Yh0[kiUtXDnN"><field name="NUM">15</field></shadow></value></block></next></block></next></block></next></block></next></block></next></block></statement></block><block type="OneButton_interrupt" id="wAxyK5yw)4v`DP}H]14t" x="0" y="433"><field name="mode">attachClick</field><value name="PIN"><shadow type="pins_digital" id="EL7^MK??n|[wSxc6P$3h"><field name="PIN">2</field></shadow></value><value name="STAT"><shadow type="inout_highlow" id="GrK/7}7+]#eo`=`jjkJ8"><field name="BOOL">LOW</field></shadow></value><statement name="DO"><block type="arduino_dfplayer_set_1" id="@d|eL1MX/VYd2WvH|:z;"><field name="dfplayer_name">myPlayer</field><field name="set_data">previous</field></block></statement></block><block type="OneButton_interrupt" id="1B3glUup#MXy=vtJ*K/U" x="0" y="537"><field name="mode">attachClick</field><value name="PIN"><shadow type="pins_digital" id="uK+d#^6apAydK`C.d^H)"><field name="PIN">3</field></shadow></value><value name="STAT"><shadow type="inout_highlow" id="dD]I|=4#gL4/.A+5^A,."><field name="BOOL">LOW</field></shadow></value><statement name="DO"><block type="arduino_dfplayer_set_1" id="j@uEk{,_f4RDw,VT#=kb"><field name="dfplayer_name">myPlayer</field><field name="set_data">next</field></block></statement></block></xml>
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
<xml version="Mixly 2.0 Beta11" board="Arduino AVR@Arduino/Genuino Uno" xmlns="http://www.w3.org/1999/xhtml"><block type="display_rgb_init" id="v4M1K1Np3N#c3paivG=A" x="-1173" y="-48"><field name="PIN">12</field><field name="TYPE">NEO_GRB</field><value name="LEDCOUNT"><shadow type="math_number" id="yG{j@7uv;nF~r)1j.jD]"><field name="NUM">12</field></shadow></value><next><block type="controls_for" id="xF{9d-Xpc/fR{5^LXT)4"><field name="VAR">i</field><value name="FROM"><shadow type="math_number" id="|,G5LN*%~e6u!_A7?R4X"><field name="NUM">0</field></shadow></value><value name="TO"><shadow type="math_number" id="HxoSjeH?zqx{R-H?!GfG"><field name="NUM">32767</field></shadow></value><value name="STEP"><shadow type="math_number" id="!,D^=nmk=f,U8U[.V2~("><field name="NUM">64</field></shadow></value><statement name="DO"><block type="controls_for" id=".Z5-o|`akZ+SnL^7rw`S"><field name="VAR">j</field><value name="FROM"><shadow type="math_number" id="kME2%:-r*lk*MM`$_Tsp"><field name="NUM">1</field></shadow></value><value name="TO"><shadow type="math_number" id=")dB43RM_Np9D2rQ;Xa;M"><field name="NUM">12</field></shadow></value><value name="STEP"><shadow type="math_number" id="2;yp*1bPdujiQ^tf%Y1N"><field name="NUM">1</field></shadow></value><statement name="DO"><block type="RGB_color_HSV" id="rHB65Fy`^])Y|b8|O*Kn" inline="false"><field name="PIN">12</field><value name="_LED_"><shadow type="math_number" id="dpoYSl9_ugm0.%q.XqNB"><field name="NUM">j</field></shadow></value><value name="H"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="7;:QdT^-ZdY5FNqsCM4U"><field name="NUM"></field></shadow><block type="math_arithmetic" id="Td+2=$o%1G6sb:rg8?LT"><field name="OP">QUYU</field><value name="A"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="3V]VgP%~2v?N2*WVu4$x"><field name="NUM">5461</field></shadow><block type="math_arithmetic" id="/2=tfAo?XAL_^((qM/4E"><field name="OP">MULTIPLY</field><value name="A"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="#O4I$}/~}6D5g%D!(|ag"><field name="NUM">1</field></shadow><block type="math_arithmetic" id="IAv0OJjF|lTFosh?V9lB"><field name="OP">ADD</field><value name="A"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="3V]VgP%~2v?N2*WVu4$x"><field name="NUM">5461</field></shadow><block type="math_arithmetic" id="Q}PH_]/EAMG5B$%x2wj)"><field name="OP">MULTIPLY</field><value name="A"><shadow type="math_number" id=":3l2*`B9Zi57[FH/l)do"><field name="NUM">5461</field></shadow></value><value name="B"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="y57$.KxpnwVYZ/03VK;_"><field name="NUM">1</field></shadow><block type="math_arithmetic" id="N!_jM6Dvt[rQ/1HdnGy{"><field name="OP">MINUS</field><value name="A"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="IWj*9Y2(#kQ#GeeLzUy`"><field name="NUM">5461</field></shadow><block type="variables_get" id="-9rE,fAW{mEYsrmJlUn:"><field name="VAR">j</field></block></value><value name="B"><shadow type="math_number" id="L~=P~S|G,|95$YCj#mK3"><field name="NUM">1</field></shadow></value></block></value></block></value><value name="B"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="y57$.KxpnwVYZ/03VK;_"><field name="NUM">1</field></shadow><block type="variables_get" id="#7U15dd4J09zQ;ieh^Y6"><field name="VAR">i</field></block></value></block></value><value name="B"><shadow type="math_number" id="Cd-]p,b|mC[EWyY:DYXK"><field name="NUM">2</field></shadow></value></block></value><value name="B"><shadow type="math_number" id="y57$.KxpnwVYZ/03VK;_"><field name="NUM">65536</field></shadow></value></block></value><value name="S"><shadow type="math_number" id="BB3@jXce8Fh4Fz/EfxKC"><field name="NUM">255</field></shadow></value><value name="V"><shadow type="math_number" id="!0Z#jVD6xpU6h+U;};F-"><field name="NUM">255</field></shadow></value></block></statement><next><block type="display_rgb_show" id="Zl~Oq6P:avJ$aG]VtoMF"><field name="PIN">12</field><next><block type="controls_delay" id="H$^#m.8z5ZjR$4Oaduco"><field name="UNIT">delay</field><value name="DELAY_TIME"><shadow type="math_number" id="m0O[dT}g#(VB:a,5EQ5]"><field name="NUM">2</field></shadow></value></block></next></block></next></block></statement></block></next></block></xml>
|
||||
Reference in New Issue
Block a user