Files
mixly3/boards/default/arduino_avr/examples/10-传感器/B01-声控舵机.mix
2024-07-19 10:16:00 +08:00

1 line
1.5 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<xml version="Mixly 2.0 Beta11" board="Arduino AVR@Arduino/Genuino Uno" xmlns="http://www.w3.org/1999/xhtml"><block type="factory_notes" id=":7}WfioZi?:yEQD$ZOI-" x="102" y="97"><field name="VALUE">声控舵机\n\nA0接声音传感器D2接舵机\n舵机转动角度随音量大小在0-180之间来回转</field><next><block type="servo_move" id="]Akc4svhV~9n75IRz}t@"><field name="PIN">2</field><value name="DEGREE"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="?(PgFXBQ{Uk_8Fk(D/.P"><field name="NUM">0</field></shadow><block type="base_map" id="{RgO/~UOs,Wq--*W0zyY"><field name="maptype">map_int</field><value name="NUM"><block type="inout_analog_read" id="_k|xOL0_wGEr~MdRPZY."><value name="PIN"><shadow type="pins_analog" id="%_?*D#.r/68Zbgf#K2(c"><field name="PIN">A0</field></shadow></value></block></value><value name="fromLow"><shadow type="math_number" id="ti#9F*|/31y%cW?t{q3k"><field name="NUM">1</field></shadow></value><value name="fromHigh"><shadow type="math_number" id="kg(O,W(w{0]SvC7qKi0R"><field name="NUM">500</field></shadow></value><value name="toLow"><shadow type="math_number" id="BhkhVF?`{A?R/!uVqwsf"><field name="NUM">0</field></shadow></value><value name="toHigh"><shadow type="math_number" id="CXoJT1%u03N(w~8P=VoX"><field name="NUM">180</field></shadow></value></block></value><value name="DELAY_TIME"><shadow type="math_number" id="d!DVoo%zipBM4d=~Fy!%"><field name="NUM">100</field></shadow></value></block></next></block></xml>