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="?KGHe+/?gY1*H!I69/=l" x="-275" y="189"><field name="VALUE">随机数不包括最大数,如 1—7 随机数只有 1、2、3、4、5、6。</field><next><block type="serial_begin" id="0xP_Z?UfR;o~#{*k6O2x"><field name="serial_select">Serial</field><value name="CONTENT"><shadow type="math_number" id="q%W?A_Kk|)ef4`l.R)PU"><field name="NUM">9600</field></shadow></value><next><block type="math_random_seed" id="XDN.NlO!#B72]8n{8dV!"><value name="NUM"><shadow type="math_number" id="qbD^ATa0_cFz2yh/;5=h"><field name="NUM">997</field></shadow></value><next><block type="serial_println" id="lbgs|Y?r9T|)0sy!m1:F"><field name="serial_select">Serial</field><field name="new_line">println</field><value name="CONTENT"><block type="math_random_int" id="d1ltWbZ4YuS;0WbJ%Uq6"><value name="FROM"><shadow type="math_number" id="9QpaSrQ,_pMOQ/:04hE`"><field name="NUM">1</field></shadow></value><value name="TO"><shadow type="math_number" id="4s}KhB|ZJO21-{EtW=pm"><field name="NUM">100</field></shadow></value></block></value><next><block type="controls_delay" id="a5|.`(,mW^`R/Z_ma0Ga"><field name="UNIT">delay</field><value name="DELAY_TIME"><shadow type="math_number" id="VQZg[g+?(QjK)bBQ4hh4"><field name="NUM">100</field></shadow></value></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="uk{i3#|J+Vg:a2$wM}MV" x="-165" y="-77"><field name="VALUE">使用移位计算</field><next><block type="variables_declare" id="*he3DGS3:@jq;:OLX[u8"><field name="variables_type">global_variate</field><field name="VAR">item</field><field name="TYPE">int</field><value name="VALUE"><block type="math_number" id="m6G=u9g9}vA+ecZt3ZZf"><field name="NUM">4096</field></block></value><next><block type="serial_begin" id="Hr@7cg!#%(U#H#7:P[r3"><field name="serial_select">Serial</field><value name="CONTENT"><shadow type="math_number" id="RG5h!57N)UK?h:(.EQv3"><field name="NUM">9600</field></shadow></value><next><block type="controls_for" id="QW6^lf#;*Yb4Dv$)g%9o"><field name="VAR">i</field><value name="FROM"><shadow type="math_number" id="Eimv5gSJ)q-9-/g}i8hP"><field name="NUM">1</field></shadow></value><value name="TO"><shadow type="math_number" id="^7K72c!uqv~!HmdO#e5*"><field name="NUM">12</field></shadow></value><value name="STEP"><shadow type="math_number" id="(YRvB.=U:SSA}fg;!9wh"><field name="NUM">1</field></shadow></value><statement name="DO"><block type="serial_println" id="WBWTV}sOFq{{SX!-]fXp"><field name="serial_select">Serial</field><field name="new_line">println</field><value name="CONTENT"><block type="math_bit" id="VIOJ;`7cBe=hiFkg[n;e"><field name="OP">>></field><value name="A"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="vXtSkDQWx|.aWzle)7cj"><field name="NUM">4096</field></shadow><block type="variables_get" id=";{.tGp!oWSC{?ir=qa$M"><field name="VAR">item</field></block></value><value name="B"><shadow type="math_number" id="?V7ta|AWgmo%+vP[UE0x"><field name="NUM">1</field></shadow></value></block></value><next><block type="variables_set" id="jWndQ)u5nMlH^T{ag9d{"><field name="VAR">item</field><value name="VALUE"><block type="math_bit" id="biLJh=ws;7!T5b,T0!2e"><field name="OP">>></field><value name="A"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="vXtSkDQWx|.aWzle)7cj"><field name="NUM">4096</field></shadow><block type="variables_get" id="`JA=R=xAFX0MS=|(!H^T"><field name="VAR">item</field></block></value><value name="B"><shadow type="math_number" id=",C-T+V/XW#`~eR(dHh7-"><field name="NUM">1</field></shadow></value></block></value></block></next></block></statement><next><block type="controls_end_program" id="0lQAm1:#]7qlv$InUOm0"></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="=}ynWVr!(}h-d;yCl,X(" x="-40" y="110"><field name="VALUE">绘制SIN-COS的函数图像\n程序上传后,打开串口监视器\n并切换到绘图模式</field><next><block type="serial_begin" id="*FH*+q2A?V5*Yf4;o[9*"><field name="serial_select">Serial</field><value name="CONTENT"><shadow type="math_number" id="jzy(`c$`UtGEpZ1yjIry"><field name="NUM">9600</field></shadow></value><next><block type="controls_for" id="=hVHlF()/a2l*xkyiY_i"><field name="VAR">i</field><value name="FROM"><shadow type="math_number" id="bP2myzI1YfRpxtf]-~+Q"><field name="NUM">0</field></shadow></value><value name="TO"><shadow type="math_number" id="_Ym`uml`=`k)oj/4mZH_"><field name="NUM">360</field></shadow></value><value name="STEP"><shadow type="math_number" id="EW*@r!I.)/Ti#-RBYR.="><field name="NUM">1</field></shadow></value><statement name="DO"><block type="serial_print" id=")osIjp#r`D(QJKVY|gA|"><field name="serial_select">Serial</field><field name="new_line">print</field><value name="CONTENT"><block type="math_arithmetic" id="nY=MwF;|rK2.ew=1-]zd"><field name="OP">ADD</field><value name="A"><shadow xmlns="" type="math_number" id="Xs:d*5PSsjzB!%Inn#n?"><field xmlns="" name="NUM">1</field></shadow><block type="math_arithmetic" id=")UjGHX-A=/Se6)Xq~p^q"><field name="OP">MULTIPLY</field><value name="A"><shadow xmlns="" type="math_number"><field xmlns="" name="NUM">1</field></shadow><block type="math_trig" id="_2c*siwq#l:.aV~KD*lN"><field name="OP">SIN</field><value name="NUM"><block type="variables_get" id="wh7e;Hn[7[]Q18Rf*DBp"><field name="VAR">i</field></block></value></block></value><value name="B"><shadow xmlns="" type="math_number"><field xmlns="" name="NUM">1</field></shadow><block type="math_number" id="VXJbhfnBHn6=g#kc7d**"><field name="NUM">256</field></block></value></block></value><value name="B"><shadow type="math_number" id="@log/n%BorDm:QGR(O+E"><field name="NUM">512</field></shadow></value></block></value><next><block type="serial_print" id="sQOwxQ,*1m=joCqIBvK4"><field name="serial_select">Serial</field><field name="new_line">print</field><value name="CONTENT"><block type="text" id=";p]=bCFKWa}c!`7ro53?"><field name="TEXT">,</field></block></value><next><block type="serial_println" id="nXYC@@.z%Jw)0.T7#}aP"><field name="serial_select">Serial</field><field name="new_line">println</field><value name="CONTENT"><block type="math_arithmetic" id="}eL0CKC~hgFFlqb9Cy:B"><field name="OP">ADD</field><value name="A"><shadow xmlns="" type="math_number" id="Xs:d*5PSsjzB!%Inn#n?"><field xmlns="" name="NUM">1</field></shadow><block type="math_arithmetic" id="X6vsB.q5Z)Aw5nmetdT?"><field name="OP">MULTIPLY</field><value name="A"><shadow xmlns="" type="math_number"><field xmlns="" name="NUM">1</field></shadow><block type="math_trig" id="m!9jU%;-PAl[O/PowAbb"><field name="OP">COS</field><value name="NUM"><block type="variables_get" id="xiZ=FR=aAZL4cJAkqrhR"><field name="VAR">i</field></block></value></block></value><value name="B"><shadow xmlns="" type="math_number"><field xmlns="" name="NUM">1</field></shadow><block type="math_number" id="?dj*,J3G7HoC_wsWCx^]"><field name="NUM">256</field></block></value></block></value><value name="B"><shadow type="math_number" id="k-ROx[sDL}6W;Bh#a~7y"><field name="NUM">512</field></shadow></value></block></value><next><block type="base_delay" id="iHn,)wreVS0eKN?;a%_s"><field name="UNIT">delay</field><value name="DELAY_TIME"><shadow type="math_number" id=")G3Dw4PjHKZ)#?-05-x/"><field name="NUM">200</field></shadow></value></block></next></block></next></block></next></block></statement></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="HBM,=JKlM@dQAe~!!-J1" x="-680" y="158"><field name="VALUE">A0接电位器\n串口输出20-180区间的数值</field><next><block type="serial_begin" id="uG{H~~BS/fIYV]6:]#m9"><field name="serial_select">Serial</field><value name="CONTENT"><shadow type="math_number" id="|~k?:X5%O@mN^2*m;icz"><field name="NUM">9600</field></shadow></value><next><block type="serial_println" id="3%mkwJBit8H*1C.c$8;G"><field name="serial_select">Serial</field><field name="new_line">println</field><value name="CONTENT"><block type="base_map" id="gl|{eO:a]s7H=TcB_ZT-"><field name="maptype">map_int</field><value name="NUM"><block type="inout_analog_read" id="dl{4yVR8Dk.HM);]%[u]"><value name="PIN"><shadow type="pins_analog" id="ry./XNAT%FXC{YssC-91"><field name="PIN">A0</field></shadow></value></block></value><value name="fromLow"><shadow type="math_number" id="7oxU6!5BO{(gs(=]I$(O"><field name="NUM">0</field></shadow></value><value name="fromHigh"><shadow type="math_number" id="?1)93(F`=lne-!(4EjI8"><field name="NUM">1023</field></shadow></value><value name="toLow"><shadow type="math_number" id="a8Z`{VZe,EcHg^P0[xW5"><field name="NUM">20</field></shadow></value><value name="toHigh"><shadow type="math_number" id=":;@)*0mY9|k,RLwZKewJ"><field name="NUM">180</field></shadow></value></block></value><next><block type="controls_delay" id="U1!`OE%JO_m]VYHW/r~h"><field name="UNIT">delay</field><value name="DELAY_TIME"><shadow type="math_number" id="LUKeKH**C({[S7E5+0n}"><field name="NUM">500</field></shadow></value></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="W}~6ec~+P;mT5l+,;]fA" x="-751" y="-144"><field name="VALUE">A0连接旋转电位器,D11连接LED\nLED灯随着电位器的旋转呈现在0-255区间的不同亮度</field><next><block type="variables_declare" id="Y6-*lP:W[J,}?m~(Xh7Q"><field name="variables_type">global_variate</field><field name="VAR">liangdu</field><field name="TYPE">int</field><value name="VALUE"><block type="base_map" id="@Guu~IxV,L]1~L^6fi+5"><field name="maptype">map_int</field><value name="NUM"><block type="inout_analog_read" id="AO9=*_J5_Qn#.J7RHOj@"><value name="PIN"><shadow type="pins_analog" id=",zboVYo8+MBm^T_g?pNt"><field name="PIN">A0</field></shadow></value></block></value><value name="fromLow"><shadow type="math_number" id="u6Zo@|Wr]dvvtiR-GyjU"><field name="NUM">0</field></shadow></value><value name="fromHigh"><shadow type="math_number" id="dMS5,4+{77WYfqaASlFW"><field name="NUM">1023</field></shadow></value><value name="toLow"><shadow type="math_number" id="][I.;eA,D-XG0R-TeES]"><field name="NUM">0</field></shadow></value><value name="toHigh"><shadow type="math_number" id="B6!l`q7pv0SL`aCNv7x{"><field name="NUM">255</field></shadow></value></block></value><next><block type="inout_analog_write" id="@7=QftUxyhzeMl]L+DN*"><value name="PIN"><shadow type="pins_pwm" id="Fi7^1kk-o#AnuQ_ZWM?y"><field name="PIN">11</field></shadow></value><value name="NUM"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="g/2y:_ga(AVq7o+1w{nO"><field name="NUM">0</field></shadow><block type="variables_get" id=",+lgv2+=qLHaI`y]fTK`"><field name="VAR">liangdu</field></block></value></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="base_setup" id="De`ruz5VtD=)vw?X%w,3" x="-1277" y="-32"><statement name="DO"><block type="serial_begin" id="esyVxp0%?{)-[C`$%/e`"><field name="serial_select">Serial</field><value name="CONTENT"><shadow type="math_number" id="8$F}agubXC8+abgF#e5@"><field name="NUM">9600</field></shadow></value></block></statement></block><block type="factory_notes" id="#.ucTz$+[{A3~)M:XP%E" x="-1278" y="77"><field name="VALUE">输出两个数取余的值</field><next><block type="serial_println" id="#*|lx[gI%yGgxFfu)ptc"><field name="serial_select">Serial</field><field name="new_line">println</field><value name="CONTENT"><block type="math_arithmetic" id="9u)#s3WxCiH]!L(H%]GT"><field name="OP">QUYU</field><value name="A"><shadow type="math_number" id="2_Vw7`;K/e[npErGqSN3"><field name="NUM">10</field></shadow></value><value name="B"><shadow type="math_number" id="yp?`VM_+}y?7_432_~Um"><field name="NUM">3</field></shadow></value></block></value><next><block type="factory_notes" id="%IASTx3#}m~=^@S94SUP"><field name="VALUE">A0连接电位器,\n将看到LED亮灭随电位器的旋转约束在0-255之间不同的亮度</field><next><block type="inout_analog_write" id="?PQldvR/W9o]+WSp6Jj:"><value name="PIN"><shadow type="pins_pwm" id="2Z!ht5x%:u5wh;wRB9O~"><field name="PIN">11</field></shadow></value><value name="NUM"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="4M5u,rAh#jqBZmI/L2Ns"><field name="NUM">0</field></shadow><block type="math_constrain" id="]oC8h`.2bfr{KqykHe~,"><value name="VALUE"><block type="math_arithmetic" id=".b14:o,/X2z5]7SRU/DN"><field name="OP">MULTIPLY</field><value name="A"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="quTq2,zRFWC(=L#^?gc5"><field name="NUM">10</field></shadow><block type="math_arithmetic" id="64fa-`ZSvQmNWZX]d-E2"><field name="OP">QUYU</field><value name="A"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="quTq2,zRFWC(=L#^?gc5"><field name="NUM">10</field></shadow><block type="inout_analog_read" id="|/^L,#K4_K?HZ!.-!dcL"><value name="PIN"><shadow type="pins_analog" id="G-VIsu[9=IU(#7q=V=su"><field name="PIN">A0</field></shadow></value></block></value><value name="B"><shadow type="math_number" id="6mKII?:J2.0(oIG,k:J?"><field name="NUM">3</field></shadow></value></block></value><value name="B"><shadow type="math_number" id="lFrP[s=H[=ZM?8)O0;Ln"><field name="NUM">50</field></shadow></value></block></value><value name="LOW"><shadow type="math_number" id="Csm0!V-ELrS,|OcsSTHt"><field name="NUM">0</field></shadow></value><value name="HIGH"><shadow type="math_number" id="2ysA]d+WP4Gy9-Jpx_}e"><field name="NUM">255</field></shadow></value></block></value></block></next></block></next></block></next></block></xml>
|
||||
Reference in New Issue
Block a user