Files
mixly3/boards/default/arduino_avr/examples/11-执行器/07-mini MP3_播放音乐.mix
2024-07-19 10:16:00 +08:00

1 line
3.2 KiB
XML

<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>