1 Star 0 Fork 0

wzsckj/test

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
仰卧起坐程序.xml 8.45 KB
一键复制 编辑 原始数据 按行查看 历史
wzsckj 提交于 2017-12-24 16:57 . 第一次代码框架完成
<xml board="Arduino Uno"><block type="variables_set" x="224" y="453"><field name="VAR">y1</field><value name="VALUE"><block type="inout_digital_read2"><value name="PIN"><shadow type="pins_digital"><field name="PIN">0</field></shadow><block type="pins_digital"><field name="PIN">8</field></block></value></block></value><next><block type="variables_set"><field name="VAR">y2</field><value name="VALUE"><block type="inout_digital_read2"><value name="PIN"><shadow type="pins_digital"><field name="PIN">0</field></shadow><block type="pins_digital"><field name="PIN">6</field></block></value></block></value><next><block type="variables_set"><field name="VAR">y3</field><value name="VALUE"><block type="chaoshengbo2"><value name="PIN1"><shadow type="pins_digital"><field name="PIN">1</field></shadow><block type="pins_digital"><field name="PIN">3</field></block></value><value name="PIN2"><shadow type="pins_digital"><field name="PIN">2</field></shadow><block type="pins_digital"><field name="PIN">2</field></block></value></block></value><next><block type="inout_digital_write2"><value name="PIN"><shadow type="pins_digital"><field name="PIN">0</field></shadow><block type="pins_digital"><field name="PIN">12</field></block></value><value name="STAT"><block type="inout_highlow"><field name="BOOL">HIGH</field></block></value><next><block type="base_delay"><field name="UNIT">delay</field><value name="DELAY_TIME"><shadow type="math_number"><field name="NUM">1000</field></shadow><block type="math_number"><field name="NUM">300</field></block></value><next><block type="inout_digital_write2"><value name="PIN"><shadow type="pins_digital"><field name="PIN">0</field></shadow><block type="pins_digital"><field name="PIN">12</field></block></value><value name="STAT"><block type="inout_highlow"><field name="BOOL">LOW</field></block></value><next><block type="base_delay"><field name="UNIT">delay</field><value name="DELAY_TIME"><shadow type="math_number"><field name="NUM">1000</field></shadow><block type="math_number"><field name="NUM">300</field></block></value><next><block type="base_delay"><field name="UNIT">delay</field><value name="DELAY_TIME"><shadow type="math_number"><field name="NUM">1000</field></shadow><block type="math_number"><field name="NUM">500</field></block></value><next><block type="controls_if"><value name="IF0"><block type="logic_compare"><field name="OP">EQ</field><value name="A"><block type="variables_get"><field name="VAR">y1</field></block></value><value name="B"><block type="math_number"><field name="NUM">0</field></block></value></block></value><statement name="DO0"><block type="controls_if"><value name="IF0"><block type="logic_operation"><field name="OP">AND</field><value name="A"><block type="logic_compare"><field name="OP">EQ</field><value name="A"><block type="variables_get"><field name="VAR">y2</field></block></value><value name="B"><block type="math_number"><field name="NUM">0</field></block></value></block></value><value name="B"><block type="logic_compare"><field name="OP">EQ</field><value name="A"><block type="variables_get"><field name="VAR">a1</field></block></value><value name="B"><block type="math_number"><field name="NUM">0</field></block></value></block></value></block></value><statement name="DO0"><block type="variables_set"><field name="VAR">a1</field><value name="VALUE"><block type="math_number"><field name="NUM">1</field></block></value></block></statement><next><block type="serial_println"><field name="serial_select">Serial</field><value name="CONTENT"><block type="variables_get"><field name="VAR">a1</field></block></value><next><block type="controls_if"><value name="IF0"><block type="logic_operation"><field name="OP">AND</field><value name="A"><block type="logic_compare"><field name="OP">LT</field><value name="A"><block type="variables_get"><field name="VAR">y3</field></block></value><value name="B"><block type="math_number"><field name="NUM">10</field></block></value></block></value><value name="B"><block type="logic_compare"><field name="OP">EQ</field><value name="A"><block type="variables_get"><field name="VAR">a1</field></block></value><value name="B"><block type="math_number"><field name="NUM">1</field></block></value></block></value></block></value><statement name="DO0"><block type="variables_set"><field name="VAR">a2</field><value name="VALUE"><block type="math_number"><field name="NUM">2</field></block></value></block></statement><next><block type="serial_println"><field name="serial_select">Serial</field><value name="CONTENT"><block type="variables_get"><field name="VAR">a2</field></block></value><next><block type="serial_println"><field name="serial_select">Serial</field><value name="CONTENT"><block type="variables_get"><field name="VAR">y2</field></block></value><next><block type="controls_if"><value name="IF0"><block type="logic_compare"><field name="OP">EQ</field><value name="A"><block type="variables_get"><field name="VAR">y2</field></block></value><value name="B"><block type="math_number"><field name="NUM">0</field></block></value></block></value><statement name="DO0"><block type="controls_if"><value name="IF0"><block type="logic_operation"><field name="OP">AND</field><value name="A"><block type="logic_compare"><field name="OP">EQ</field><value name="A"><block type="variables_get"><field name="VAR">a1</field></block></value><value name="B"><block type="math_number"><field name="NUM">1</field></block></value></block></value><value name="B"><block type="logic_compare"><field name="OP">EQ</field><value name="A"><block type="variables_get"><field name="VAR">a2</field></block></value><value name="B"><block type="math_number"><field name="NUM">2</field></block></value></block></value></block></value><statement name="DO0"><block type="variables_set"><field name="VAR">n</field><value name="VALUE"><block type="math_arithmetic"><field name="OP">ADD</field><value name="A"><block type="variables_get"><field name="VAR">n</field></block></value><value name="B"><block type="math_number"><field name="NUM">1</field></block></value></block></value><next><block type="variables_set"><field name="VAR">a1</field><value name="VALUE"><block type="math_number"><field name="NUM">0</field></block></value><next><block type="variables_set"><field name="VAR">a2</field><value name="VALUE"><block type="math_number"><field name="NUM">0</field></block></value><next><block type="group_lcd_print"><value name="device"><shadow type="math_number"><field name="NUM">0x27</field></shadow><block type="math_number"><field name="NUM">0x3F</field></block></value><value name="TEXT"><block type="text_join"><value name="A"><block type="text"><field name="TEXT">times=</field></block></value><value name="B"><block type="variables_get"><field name="VAR">n</field></block></value></block></value><value name="TEXT2"><block type="text"><field name="TEXT"></field></block></value><next><block type="serial_println"><field name="serial_select">Serial</field><value name="CONTENT"><block type="variables_get"><field name="VAR">n</field></block></value></block></next></block></next></block></next></block></next></block></statement></block></statement></block></next></block></next></block></next></block></next></block></next></block></statement></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block><block type="base_setup" x="-59" y="499"><statement name="DO"><block type="variables_declare"><field name="VAR">y1</field><field name="TYPE">long</field><value name="VALUE"><block type="math_number"><field name="NUM">1</field></block></value><next><block type="variables_declare"><field name="VAR">y2</field><field name="TYPE">long</field><value name="VALUE"><block type="math_number"><field name="NUM">1</field></block></value><next><block type="variables_declare"><field name="VAR">y3</field><field name="TYPE">long</field><value name="VALUE"><block type="math_number"><field name="NUM">0</field></block></value><next><block type="variables_declare"><field name="VAR">a1</field><field name="TYPE">long</field><value name="VALUE"><block type="math_number"><field name="NUM">0</field></block></value><next><block type="variables_declare"><field name="VAR">a2</field><field name="TYPE">long</field><value name="VALUE"><block type="math_number"><field name="NUM">0</field></block></value><next><block type="variables_declare"><field name="VAR">n</field><field name="TYPE">long</field><value name="VALUE"><block type="math_number"><field name="NUM">0</field></block></value></block></next></block></next></block></next></block></next></block></next></block></statement></block></xml>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/wzsckj/test.git
git@gitee.com:wzsckj/test.git
wzsckj
test
test
master

搜索帮助

23e8dbc6 1850385 7e0993f3 1850385