1 line
3.1 KiB
XML
1 line
3.1 KiB
XML
<xml version="Mixly 2.0 Beta11" board="Arduino AVR@Arduino/Genuino Uno" xmlns="http://www.w3.org/1999/xhtml"><block type="base_setup" id="igiz?e):w#HplBjsO%%v" x="-1855" y="-195"><statement name="DO"><block type="lists_create_with_text2" id="L8($P=wD.ArJw|~~C)$;"><field name="TYPE">byte</field><field name="VAR">mylist</field><field name="SIZE">11</field><field name="TEXT">0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90</field></block></statement></block><block type="factory_notes" id="Y$yR`jMTSv7=79lWzOh6" x="-1856" y="-92"><field name="VALUE">D8连接到74HC595芯片的使能引脚\nD3连接到74HC595芯片的时钟引脚\nD9连接到74HC595芯片的数据引脚\n利用ShiftOut模块实现单位数码管的随机数字骰子</field><next><block type="controls_for" id="Q/N_N1AHAckzK[O={l7o"><field name="VAR">i</field><value name="FROM"><shadow type="math_number" id="Cbc;^U3-,~(-H:8_~8yQ"><field name="NUM">1</field></shadow></value><value name="TO"><shadow type="math_number" id="tOu34.?W39C-s,SRSQ[u"><field name="NUM">5</field></shadow></value><value name="STEP"><shadow type="math_number" id="^2a7dFgb;nB2mH#{`E@k"><field name="NUM">1</field></shadow></value><statement name="DO"><block type="inout_digital_write2" id="pT;vH8m#iL]*Rr:n#RX7"><value name="PIN"><shadow type="pins_digital" id="_|@jzNFq+RSAFAy:*qal"><field name="PIN">8</field></shadow></value><value name="STAT"><shadow type="inout_highlow" id="qgd^CoU`o}VkohX}iuVA"><field name="BOOL">LOW</field></shadow></value><next><block type="inout_shiftout" id="bD/r^6^|tfpW^1XU+;r."><field name="ORDER">MSBFIRST</field><value name="PIN1"><shadow type="pins_digital" id="M)[u7CK2rfny|s7R+hnJ"><field name="PIN">9</field></shadow></value><value name="PIN2"><shadow type="pins_digital" id="6D^qh3A/bAU[-uDvE^N}"><field name="PIN">3</field></shadow></value><value name="DATA"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="++{T3frtZU2d1h/7)Bb?"><field name="NUM">0</field></shadow><block type="lists_getIndex" id="zwai_-(Ur0%Nuij{x/3v"><field name="VAR">mylist</field><value name="AT"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="4h8sw|vHIA-Xls;aKniO"><field name="NUM">1</field></shadow><block type="math_random_int" id="EUtItk]X[+N7TIE}rRk`"><value name="FROM"><shadow type="math_number" id="4l`c=][n7P!3Ns(V=9G3"><field name="NUM">1</field></shadow></value><value name="TO"><shadow type="math_number" id="^SCoo7*7YU(Zd4^lsy[c"><field name="NUM">10</field></shadow></value></block></value></block></value><next><block type="inout_digital_write2" id="96IMy*+5{7e*Fs;t51iH"><value name="PIN"><shadow type="pins_digital" id=":ND]MB0O::y_1hoYA+lS"><field name="PIN">8</field></shadow></value><value name="STAT"><shadow type="inout_highlow" id="/5S`OgGs6Pov,x`)~h2a"><field name="BOOL">HIGH</field></shadow></value><next><block type="controls_delay" id="yY}-R/!02GFA`@l-h#?J"><field name="UNIT">delay</field><value name="DELAY_TIME"><shadow type="math_number" id="$ZV/awIZe9=61y(6:!+K"><field name="NUM">1000</field></shadow></value></block></next></block></next></block></next></block></statement></block></next></block></xml> |