1 line
2.1 KiB
XML
1 line
2.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="pZ.%ne|pNn%NDu)H-mG1" x="-95" y="156"><field name="VALUE">MPU9250 九轴_读取九轴传感器数字串口打印</field><next><block type="communicate_i2c_init" id="rY7-Y/2Y^Ta{+c:~pC))"><value name="SUB"><shadow type="variables_get" id="$a8%x}B+C?Gph7E-2~lE"><field name="VAR">i2c</field></shadow></value><value name="TX"><shadow type="pins_digital_pin" id="fhRNFIi1i7,QQ6*vH,`J"><field name="PIN">6</field></shadow></value><value name="RX"><shadow type="pins_digital_pin" id="$@D4H|=!^}S!8AGmT+h/"><field name="PIN">7</field></shadow></value><value name="freq"><shadow type="math_number" id=")cyu/m*4f=QuB}XqWnno"><field name="NUM">400000</field></shadow></value><next><block type="sensor_use_i2c_init" id="Rpw)e}IvJSNww?ouRa[M"><field name="key">MPU9250</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="sensor_mpu9250_get_acceleration" id="@]ta6yoSzjr2E}:N.U~V"><field name="key">values</field><value name="SUB"><shadow type="variables_get" id="e0DTh]uT0)B@[D[5N#,b"><field name="VAR">sensor</field></shadow></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> |