Files
mixly3/boards/default/micropython_k210_mixgoai/examples/FPHE4-oEsow8.mix
2024-07-23 20:47:22 +08:00

1 line
2.4 KiB
XML

<xml version="Mixly 2.0 Beta11" board="MixGo AI" xmlns="http://www.w3.org/1999/xhtml"><block type="factory_block_notes" id="t.w)Y}6ABQfO0F{Uu$ep" x="-98" y="54"><field name="VALUE">Bmp280 大气压_读取大气压传感器数字串口打印</field><next><block type="communicate_i2c_init" id="=3:6LhB=qhDIOARIcW(7"><value name="SUB"><shadow type="variables_get" id="3x!o,c+0qbItmllfTXk/"><field name="VAR">i2c</field></shadow></value><value name="TX"><shadow type="pins_digital_pin" id="=?}M^g(*=S0J=fUz/^9["><field name="PIN">6</field></shadow></value><value name="RX"><shadow type="pins_digital_pin" id="#$;X*XEomp{cBe!R[4AS"><field name="PIN">7</field></shadow></value><value name="freq"><shadow type="math_number" id=";,~u_(wy;Y(?SVC_Q]A}"><field name="NUM">400000</field></shadow></value><next><block type="sensor_use_i2c_init" id="Rpw)e}IvJSNww?ouRa[M"><field name="key">BMP280</field><value name="I2CSUB"><shadow type="variables_get" id="Qz/!D,8(MqH}:jm55Ese"><field name="VAR">i2c</field></shadow></value><value name="SUB"><shadow type="variables_get" id="hO!^rTp_3Pjb2_kx(FWb"><field name="VAR">sensor</field></shadow></value><next><block type="controls_whileUntil" id="^03[qLDdTdNcZ1pJ1AMG"><field name="MODE">WHILE</field><value name="BOOL"><shadow type="logic_boolean" id="Pwkowr8*VQ=rbpF5:Qu%"><field name="BOOL">TRUE</field></shadow></value><statement name="DO"><block type="system_print" id="8W*hZOX@#BBr)[22Ra.="><value name="VAR"><shadow xmlns="http://www.w3.org/1999/xhtml" type="text" id="T5v$@?=7n.|(5SbtVKe~"><field name="TEXT">Mixly</field></shadow><block type="text_format_noreturn" id="FFw!iA=QRhYz#b)yGa#r"><mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation><value name="VAR"><shadow type="text" id="%_Y-CC-II{oUUpMCxb0s"><field name="TEXT">Atmospheric pressure is {}Pa</field></shadow></value><value name="ADD0"><block type="sensor_bmp" id=".ZjMFtDWve}RC4S3^U/B"><field name="key">get_BMP_pressure()</field><value name="SUB"><shadow type="variables_get" id="FRc1U9:Br*uK1{#8s;IK"><field name="VAR">sensor</field></shadow></value></block></value></block></value><next><block type="controls_delay" id="c5k$qaf[t2xDcUV4dvpJ"><field name="Time">ms</field><value name="DELAY_TIME"><shadow type="math_number" id="RO9Z:lv$oq?7G%MIhybY"><field name="NUM">100</field></shadow></value></block></next></block></statement></block></next></block></next></block></next></block></xml>