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

1 line
2.2 KiB
XML

<xml version="Mixly 2.0 Beta11" board="MixGo AI" xmlns="http://www.w3.org/1999/xhtml"><block type="communicate_i2c_init" id="-*ji.Y{h[+{uR}5/40r:" x="-37" y="115"><value name="SUB"><shadow type="variables_get" id="v]qMN%ou9Or4s23e.,9{"><field name="VAR">i2c</field></shadow></value><value name="TX"><shadow type="pins_digital_pin" id="j^paX#!Kd{5#~j/hSn/$"><field name="PIN">6</field></shadow></value><value name="RX"><shadow type="pins_digital_pin" id="2.Z7*,tk$Y9c=;#PC8B6"><field name="PIN">7</field></shadow></value><value name="freq"><shadow type="math_number" id="uunI$Bt]gD`OU4yU[#m{"><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></xml>