1 line
3.1 KiB
XML
1 line
3.1 KiB
XML
<xml version="Mixly 2.0 Beta11" board="MixGo AI" xmlns="http://www.w3.org/1999/xhtml"><block type="factory_block_notes" id="eV@w5a?aDYF`J|T,GpeV" x="-92" y="43"><field name="VALUE">SHT20_读取温湿度传感器数字串口打印</field><next><block type="communicate_i2c_init" id="Rs[0,x!3r*_*0r1-r4Z@"><value name="SUB"><shadow type="variables_get" id="Wm5MN07G2i-NDUk+NH~/"><field name="VAR">i2c</field></shadow></value><value name="TX"><shadow type="pins_digital_pin" id="gHJozAdbTS*3Tdbq/4;p"><field name="PIN">6</field></shadow></value><value name="RX"><shadow type="pins_digital_pin" id="oB1B~p%w,VEJ$c[Euvo-"><field name="PIN">7</field></shadow></value><value name="freq"><shadow type="math_number" id="ler~W$lmg1~j)._8,9g1"><field name="NUM">400000</field></shadow></value><next><block type="sensor_use_i2c_init" id="Rpw)e}IvJSNww?ouRa[M"><field name="key">SHT20</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_inline" id="@mm~Dg,{{o51}49}h$F]"><value name="VAR"><shadow xmlns="http://www.w3.org/1999/xhtml" type="text" id="ukHvsHa^LOBt#Nj)Ar3O"><field name="TEXT">Mixly</field></shadow><block type="text_format_noreturn" id="mtc2P-#e7ND.Gw)g+3:c"><mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation><value name="VAR"><shadow type="text" id=";|A2d(*A~B,V:bPS3*:{"><field name="TEXT">Temperature is:{}℃</field></shadow></value><value name="ADD0"><block type="sensor_sht" id="vZ-@oTgP-ufeY8WnLLP,"><field name="key">get_SHT_temperature()</field><value name="SUB"><shadow type="variables_get" id="[W1qfCIf;%-UwY@z4mG)"><field name="VAR">sensor</field></shadow></value></block></value></block></value><next><block type="system_print" id="b8g{v;Z3Cl$2QvYhjfG3"><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="zoI)u3co_yrzX%NMx=TO"><mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation><value name="VAR"><shadow type="text" id="i@a9)S@Jh90?2ZV|K9DN"><field name="TEXT"> Humidity is:{}%</field></shadow></value><value name="ADD0"><block type="sensor_sht" id="=XJLEF6!(F4.-}r[Zw7O"><field name="key">get_SHT_relative_humidity()</field><value name="SUB"><shadow type="variables_get" id=")~?F%P;@]xQj=+d2Pw8f"><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></next></block></statement></block></next></block></next></block></next></block></xml> |