feat(boards): 调整micropython下sensor_ms5611 XML

This commit is contained in:
王立帮
2025-03-28 10:33:09 +08:00
parent 7d7ac495bb
commit 0d96d7e7df
7 changed files with 252 additions and 161 deletions

View File

@@ -3577,7 +3577,7 @@
</value>
</block>
-->
<block type="communicate_i2c_init" m-hide='micropython:esp32c3:mixgocar_c3'>
<block type="communicate_i2c_init">
<value name="SUB">
<shadow type="variables_get">
<field name="VAR">i2c_extend</field>
@@ -3613,133 +3613,152 @@
</block>
</next>
</block>
<block type="sensor_mpu9250_get_acceleration" m-hide='micropython:esp32c3:mixgocar_c3'>
<block type="sensor_mpu9250_get_acceleration">
<value name="SUB">
<shadow type="variables_get">
<field name="VAR">xsensor</field>
</shadow>
</value>
</block>
<block type="sensor_mpu9250_get_magnetic" m-hide='micropython:esp32c3:mixgocar_c3'>
<block type="sensor_mpu9250_get_magnetic">
<value name="SUB">
<shadow type="variables_get">
<field name="VAR">xsensor</field>
</shadow>
</value>
</block>
<block type="sensor_mpu9250_get_gyro" m-hide='micropython:esp32c3:mixgocar_c3'>
<block type="sensor_mpu9250_get_gyro">
<value name="SUB">
<shadow type="variables_get">
<field name="VAR">xsensor</field>
</shadow>
</value>
</block>
<block type="sensor_mpu9250_temperature" m-hide='micropython:esp32c3:mixgocar_c3'>
<block type="sensor_mpu9250_temperature">
<value name="SUB">
<shadow type="variables_get">
<field name="VAR">xsensor</field>
</shadow>
</value>
</block>
<block type="sensor_bmp" m-hide='micropython:esp32c3:mixgocar_c3'>
<block type="sensor_bmp">
<value name="SUB">
<shadow type="variables_get">
<field name="VAR">xsensor</field>
</shadow>
</value>
</block>
<block type="sensor_sht" m-hide='micropython:esp32c3:mixgocar_c3'>
<block type="sensor_sht">
<value name="SUB">
<shadow type="variables_get">
<field name="VAR">xsensor</field>
</shadow>
</value>
</block>
<block type="sensor_adxl345_get_acceleration" m-hide='micropython:esp32c3:mixgocar_c3'>
<block type="sensor_adxl345_get_acceleration">
<value name="SUB">
<shadow type="variables_get">
<field name="VAR">xsensor</field>
</shadow>
</value>
</block>
<block type="sensor_LTR308_extern" m-hide='micropython:esp32c3:mixgocar_c3'>
<block type="sensor_LTR308_extern">
<value name="SUB">
<shadow type="variables_get">
<field name="VAR">xsensor</field>
</shadow>
</value>
</block>
<block type="sensor_LTR390UV_extern" m-hide='micropython:esp32c3:mixgocar_c3'>
<block type="sensor_LTR390UV_extern">
<value name="SUB">
<shadow type="variables_get">
<field name="VAR">xsensor</field>
</shadow>
</value>
</block>
<block type="sensor_hp203_extern" m-hide='micropython:esp32c3:mixgocar_c3'>
<block type="sensor_hp203_extern">
<value name="SUB">
<shadow type="variables_get">
<field name="VAR">xsensor</field>
</shadow>
</value>
</block>
<block type="sensor_spl06_001_extern" m-hide='micropython:esp32c3:mixgocar_c3'>
<block type="sensor_spl06_001_extern">
<value name="SUB">
<shadow type="variables_get">
<field name="VAR">xsensor</field>
</shadow>
</value>
</block>
<block type="sensor_shtc3_extern" m-hide='micropython:esp32c3:mixgocar_c3'>
<block type="sensor_ms5611_extern">
<value name="SUB">
<shadow type="variables_get">
<field name="VAR">xsensor</field>
</shadow>
</value>
</block>
<block type="sensor_aht11_extern" m-hide='micropython:esp32c3:mixgocar_c3'>
<block type="sensor_ms5611_extern_altitude">
<value name="SUB">
<shadow type="variables_get">
<field name="VAR">xsensor</field>
</shadow>
</value>
<value name="VAR">
<shadow type="math_number">
<field name="NUM">1013.25</field>
</shadow>
</value>
</block>
<block type="sensor_shtc3_extern">
<value name="SUB">
<shadow type="variables_get">
<field name="VAR">xsensor</field>
</shadow>
</value>
</block>
<block type="sensor_ltr381_extern" m-hide='micropython:esp32c3:mixgocar_c3'>
<block type="sensor_aht11_extern">
<value name="SUB">
<shadow type="variables_get">
<field name="VAR">xsensor</field>
</shadow>
</value>
</block>
<block type="sensor_ucs12071_extern" m-hide='micropython:esp32c3:mixgocar_c3'>
<block type="sensor_ltr381_extern">
<value name="SUB">
<shadow type="variables_get">
<field name="VAR">xsensor</field>
</shadow>
</value>
</block>
<block type="sensor_VL530LX_extern" m-hide='micropython:esp32c3:mixgocar_c3'>
<block type="sensor_ucs12071_extern">
<value name="SUB">
<shadow type="variables_get">
<field name="VAR">xsensor</field>
</shadow>
</value>
</block>
<block type="sensor_QMC5883L_extern" m-hide='micropython:esp32c3:mixgocar_c3'>
<block type="sensor_VL530LX_extern">
<value name="SUB">
<shadow type="variables_get">
<field name="VAR">xsensor</field>
</shadow>
</value>
</block>
<block type="sensor_MAX30102_extern" m-hide='micropython:esp32c3:mixgocar_c3'>
<block type="sensor_QMC5883L_extern">
<value name="SUB">
<shadow type="variables_get">
<field name="VAR">xsensor</field>
</shadow>
</value>
</block>
<block type="sensor_APDS9960_extern" m-hide='micropython:esp32c3:mixgocar_c3'>
<block type="sensor_MAX30102_extern">
<value name="SUB">
<shadow type="variables_get">
<field name="VAR">xsensor</field>
</shadow>
</value>
</block>
<block type="sensor_APDS9960_extern">
<value name="SUB">
<shadow type="variables_get">
<field name="VAR">xsensor</field>
@@ -3807,7 +3826,7 @@
<field name="VAR">xsensor</field>
</shadow>
</block>
<block type="communicate_spi_init" m-hide='micropython:esp32c3:mixgocar_c3'>
<block type="communicate_spi_init">
<value name="VAR">
<shadow type="variables_get">
<field name="VAR">spi</field>
@@ -3834,7 +3853,7 @@
</shadow>
</value>
<next>
<block type="sensor_use_spi_init" m-hide='micropython:esp32c3:mixgocar_c3'>
<block type="sensor_use_spi_init">
<value name="SPISUB">
<shadow type="variables_get">
<field name="VAR">spi</field>
@@ -3854,14 +3873,14 @@
</next>
</block>
<block type="extern_rfid_status" m-hide='micropython:esp32c3:mixgocar_c3'>
<block type="extern_rfid_status">
<value name="SUB">
<shadow type="variables_get">
<field name="VAR">ysensor</field>
</shadow>
</value>
</block>
<block type="extern_rfid_readid" m-hide='micropython:esp32c3:mixgocar_c3'>
<block type="extern_rfid_readid">
<value name="SUB">
<shadow type="variables_get">
<field name="VAR">ysensor</field>
@@ -3873,7 +3892,7 @@
</shadow>
</value>
</block>
<block type="extern_rfid_readcontent" m-hide='micropython:esp32c3:mixgocar_c3'>
<block type="extern_rfid_readcontent">
<value name="SUB">
<shadow type="variables_get">
<field name="VAR">ysensor</field>
@@ -3885,7 +3904,7 @@
</shadow>
</value>
</block>
<block type="extern_rfid_write" m-hide='micropython:esp32c3:mixgocar_c3'>
<block type="extern_rfid_write">
<value name="SUB">
<shadow type="variables_get">
<field name="VAR">ysensor</field>
@@ -3902,7 +3921,7 @@
</shadow>
</value>
</block>
<block type="extern_rfid_write_return" m-hide='micropython:esp32c3:mixgocar_c3'>
<block type="extern_rfid_write_return">
<value name="SUB">
<shadow type="variables_get">
<field name="VAR">ysensor</field>
@@ -3920,7 +3939,7 @@
</value>
</block>
<block type="weather_have_data" m-hide='micropython:esp32c3:mixgocar_c3'>
<block type="weather_have_data">
<value name="SUB">
<shadow type="variables_get">
<field name="VAR">ysensor</field>
@@ -3940,14 +3959,14 @@
</block>
</value>
</block>
<block type="weather_data" m-hide='micropython:esp32c3:mixgocar_c3'>
<block type="weather_data">
<value name="SUB">
<shadow type="variables_get">
<field name="VAR">ysensor</field>
</shadow>
</value>
</block>
<block type="weather_uart_mixio" m-hide='micropython:esp32c3:mixgocar_c3'>
<block type="weather_uart_mixio">
<value name="SUB">
<shadow type="variables_get">
<field name="VAR">ysensor</field>
@@ -3960,7 +3979,7 @@
</value>
</block>
<block type="sensor_dht11" m-hide='micropython:esp32c3:mixgocar_c3'>
<block type="sensor_dht11">
<value name="PIN">
<shadow type="pins_digital_pin"></shadow>
</value>
@@ -3970,7 +3989,7 @@
<shadow type="pins_digital_pin"></shadow>
</value>
</block>
<block type="HCSR04" m-hide='micropython:esp32c3:mixgocar_c3'>
<block type="HCSR04">
<value name="PIN1">
<shadow type="pins_digital_pin">
<field name="PIN">4</field>
@@ -4084,7 +4103,7 @@
</shadow>
</value>
</block>
<block type="serial_softserial_new" m-hide='micropython:esp32c3:mixgocar_c3'>
<block type="serial_softserial_new">
<value name="RX">
<shadow type="pins_digital_pin">
<field name="PIN">0</field>
@@ -4105,7 +4124,7 @@
</block>
</next>
</block>
<block type="pm25_get_data" m-hide='micropython:esp32c3:mixgocar_c3'>
<block type="pm25_get_data">
<value name="SUB">
<shadow type="variables_get">
<field name="VAR">zsensor</field>
@@ -4167,7 +4186,7 @@
</shadow>
</value>
</block>
<block type="esp32_music_pitch_init" m-hide='micropython:esp32c3:mixgocar_c3'>
<block type="esp32_music_pitch_init">
<value name="SUB">
<shadow type="variables_get">
<field name="VAR">midi</field>
@@ -4179,7 +4198,7 @@
</shadow>
</value>
</block>
<block type="esp32_music_pitch" m-hide='micropython:esp32c3:mixgocar_c3'>
<block type="esp32_music_pitch">
<value name="SUB">
<shadow type="variables_get">
<field name="VAR">midi</field>
@@ -4191,7 +4210,7 @@
</shadow>
</value>
</block>
<block type="esp32_music_pitch_with_time" m-hide='micropython:esp32c3:mixgocar_c3'>
<block type="esp32_music_pitch_with_time">
<value name="SUB">
<shadow type="variables_get">
<field name="VAR">midi</field>
@@ -4208,14 +4227,14 @@
</shadow>
</value>
</block>
<block type="esp32_music_stop" m-hide='micropython:esp32c3:mixgocar_c3'>
<block type="esp32_music_stop">
<value name="SUB">
<shadow type="variables_get">
<field name="VAR">midi</field>
</shadow>
</value>
</block>
<block type="esp32_music_play_list" m-hide='micropython:esp32c3:mixgocar_c3'>
<block type="esp32_music_play_list">
<value name="LIST">
<shadow type="pins_playlist_extern"></shadow>
</value>
@@ -4225,7 +4244,7 @@
</shadow>
</value>
</block>
<block type="esp32_music_set_tempo_extern" m-hide='micropython:esp32c3:mixgocar_c3'>
<block type="esp32_music_set_tempo_extern">
<value name="SUB">
<shadow type="variables_get">
<field name="VAR">midi</field>
@@ -4242,21 +4261,21 @@
</shadow>
</value>
</block>
<block type="esp32_music_get_tempo_extern" m-hide='micropython:esp32c3:mixgocar_c3'>
<block type="esp32_music_get_tempo_extern">
<value name="SUB">
<shadow type="variables_get">
<field name="VAR">midi</field>
</shadow>
</value>
</block>
<block type="esp32_music_reset_extern" m-hide='micropython:esp32c3:mixgocar_c3'>
<block type="esp32_music_reset_extern">
<value name="SUB">
<shadow type="variables_get">
<field name="VAR">midi</field>
</shadow>
</value>
</block>
<block type="actuator_neopixel_init" m-hide='micropython:esp32c3:mixgocar_c3'>
<block type="actuator_neopixel_init">
<value name="SUB">
<shadow type="variables_get">
<field name="VAR">rgb</field>
@@ -4273,7 +4292,7 @@
</shadow>
</value>
</block>
<block type="actuator_neopixel_rgb" m-hide='micropython:esp32c3:mixgocar_c3'>
<block type="actuator_neopixel_rgb">
<value name="SUB">
<shadow type="variables_get">
<field name="VAR">rgb</field>
@@ -4300,7 +4319,7 @@
</shadow>
</value>
</block>
<block type="actuator_neopixel_rgb_all" m-hide='micropython:esp32c3:mixgocar_c3'>
<block type="actuator_neopixel_rgb_all">
<value name="SUB">
<shadow type="variables_get">
<field name="VAR">rgb</field>
@@ -4322,14 +4341,14 @@
</shadow>
</value>
</block>
<block type="actuator_neopixel_write" m-hide='micropython:esp32c3:mixgocar_c3'>
<block type="actuator_neopixel_write">
<value name="SUB">
<shadow type="variables_get">
<field name="VAR">rgb</field>
</shadow>
</value>
</block>
<block type="servo_set_angle" m-hide='micropython:esp32c3:mixgocar_c3'>
<block type="servo_set_angle">
<value name="PIN">
<shadow type="pins_pwm_pin"></shadow>
</value>
@@ -4339,12 +4358,12 @@
</shadow>
</value>
</block>
<block type="servo_get_angle" m-hide='micropython:esp32c3:mixgocar_c3'>
<block type="servo_get_angle">
<value name="PIN">
<shadow type="pins_pwm_pin"></shadow>
</value>
</block>
<block type="servo_set_speed" m-hide='micropython:esp32c3:mixgocar_c3'>
<block type="servo_set_speed">
<value name="PIN">
<shadow type="pins_pwm_pin"></shadow>
</value>
@@ -4354,12 +4373,12 @@
</shadow>
</value>
</block>
<block type="servo_get_speed" m-hide='micropython:esp32c3:mixgocar_c3'>
<block type="servo_get_speed">
<value name="PIN">
<shadow type="pins_pwm_pin"></shadow>
</value>
</block>
<block type="communicate_i2c_init" m-hide='micropython:esp32c3:mixgocar_c3'>
<block type="communicate_i2c_init">
<value name="SUB">
<shadow type="variables_get">
<field name="VAR">i2c_extend</field>
@@ -4395,7 +4414,7 @@
</block>
</next>
</block>
<block type="actuator_ms32006_dcmotor" m-hide='micropython:esp32c3:mixgocar_c3'>
<block type="actuator_ms32006_dcmotor">
<value name="SUB">
<shadow type="variables_get">
<field name="VAR">Motor</field>
@@ -4408,7 +4427,7 @@
</value>
</block>
<block type="actuator_ms32006_stepper" m-hide='micropython:esp32c3:mixgocar_c3'>
<block type="actuator_ms32006_stepper">
<value name="SUB">
<shadow type="variables_get">
<field name="VAR">Motor</field>
@@ -4425,7 +4444,7 @@
</shadow>
</value>
</block>
<block type="serial_softserial_new" m-hide='micropython:esp32c3:mixgocar_c3'>
<block type="serial_softserial_new">
<value name="RX">
<shadow type="pins_digital_pin">
<field name="PIN">0</field>
@@ -4446,7 +4465,7 @@
</block>
</next>
</block>
<block type="syn6288_set_voice" m-hide='micropython:esp32c3:mixgocar_c3'>
<block type="syn6288_set_voice">
<value name="SUB">
<shadow type="variables_get">
<field name="VAR">actuator</field>
@@ -4456,14 +4475,14 @@
<shadow type="pins_tts_voice"></shadow>
</value>
</block>
<block type="syn6288_get_voice" m-hide='micropython:esp32c3:mixgocar_c3'>
<block type="syn6288_get_voice">
<value name="SUB">
<shadow type="variables_get">
<field name="VAR">actuator</field>
</shadow>
</value>
</block>
<block type="syn6288_builtin_voice" m-hide='micropython:esp32c3:mixgocar_c3'>
<block type="syn6288_builtin_voice">
<value name="SUB">
<shadow type="variables_get">
<field name="VAR">actuator</field>
@@ -4473,7 +4492,7 @@
<shadow type="pins_tts_builtin_music"></shadow>
</value>
</block>
<block type="syn6288_tts_play" m-hide='micropython:esp32c3:mixgocar_c3'>
<block type="syn6288_tts_play">
<value name="SUB">
<shadow type="variables_get">
<field name="VAR">actuator</field>
@@ -4535,7 +4554,7 @@
</block>
</category>
</category>
<category id="catExternMonitor" colour='5BA5A5' m-hide='micropython:esp32c3:mixgocar_c3'>
<category id="catExternMonitor" colour='5BA5A5'>
<category id="catMatrix" colour='5BA5A5'>
<block type="communicate_i2c_init">
<value name="SUB">