微波雷达和语音播放修改

This commit is contained in:
Irene-Maxine
2024-11-19 00:06:06 +08:00
parent f26ce575c8
commit 3933da7547
13 changed files with 382 additions and 170 deletions

View File

@@ -3987,42 +3987,6 @@
</shadow>
</value>
</block>
<block type="communicate_i2c_init" m-hide='micropython:esp32c3:mixgocar_c3'>
<value name="SUB">
<shadow type="variables_get">
<field name="VAR">i2c</field>
</shadow>
</value>
<value name="TX">
<shadow type="pins_digital_pin">
<field name="PIN">1</field>
</shadow>
</value>
<value name="RX">
<shadow type="pins_digital_pin">
<field name="PIN">2</field>
</shadow>
</value>
<value name="freq">
<shadow type="math_number">
<field name="NUM">100000</field>
</shadow>
</value>
<next>
<block type="radar_use_i2c_init">
<value name="SUB">
<shadow type="variables_get">
<field name="VAR">radar</field>
</shadow>
</value>
<value name="I2CSUB">
<shadow type="variables_get">
<field name="VAR">i2c</field>
</shadow>
</value>
</block>
</next>
</block>
<block type="radar_set_DETECTION_THRESHOLD">
<value name="SUB">
<shadow type="variables_get">
@@ -4382,27 +4346,6 @@
<shadow type="pins_tts_bgmusic"></shadow>
</value>
</block>
<block type="serial_softserial_new" m-hide='micropython:esp32c3:mixgocar_c3'>
<value name="RX">
<shadow type="pins_digital_pin">
<field name="PIN">1</field>
</shadow>
</value>
<value name="TX">
<shadow type="pins_digital_pin">
<field name="PIN">2</field>
</shadow>
</value>
<next>
<block type="actuator_use_uart_init_player">
<value name="SUB">
<shadow type="variables_get">
<field name="VAR">player</field>
</shadow>
</value>
</block>
</next>
</block>
<block type="player_whether_stop">
<value name="SUB">
<shadow type="variables_get">
@@ -4444,7 +4387,7 @@
</value>
<value name="song">
<shadow type="text">
<field name="TEXT">0</field>
<field name="TEXT">mixly*.mp3</field>
</shadow>
</value>
</block>