1 line
11 KiB
XML
1 line
11 KiB
XML
<xml version="Mixly 2.0 Beta11" board="Arduino AVR@Arduino Nano w/ ATmega328P (old bootloader)" xmlns="http://www.w3.org/1999/xhtml"><block type="base_setup" id="^ipY^9Cuu3{?:L08g4k6" x="0" y="0"><statement name="DO"><block type="variables_declare" id="q3Km_cE0p#YF9JRe5GJE"><field name="variables_type">global_variate</field><field name="VAR">num1</field><field name="TYPE">int</field><value name="VALUE"><block type="math_number" id="*%@@x!vxx*Wh/nN^eAw_"><field name="NUM">0</field></block></value><next><block type="variables_declare" id="yoId]iIuv:)4%4{v/zDh"><field name="variables_type">global_variate</field><field name="VAR">num2</field><field name="TYPE">int</field><value name="VALUE"><block type="math_number" id="sk=I#?TU{jb{1Uxbf$ul"><field name="NUM">0</field></block></value><next><block type="lists_create_with2" id="7f*i?J@NML`%`Zrk]TUq"><mutation xmlns="http://www.w3.org/1999/xhtml" items="4"></mutation><field name="TYPE">int</field><field name="VAR">mylist</field><value name="ADD0"><block type="text_char" id="6PDR{Mh0S-6{O*gfZQd;"><field name="TEXT">+</field></block></value><value name="ADD1"><block type="text_char" id="q5r?+x4{cUd|`/HF,)PD"><field name="TEXT">-</field></block></value><value name="ADD2"><block type="text_char" id="Kdf[tJ@oy_i5R9|3HkDD"><field name="TEXT">*</field></block></value><value name="ADD3"><block type="text_char" id="*.eM4*%+-d{R3ZV(FBCh"><field name="TEXT">/</field></block></value><next><block type="variables_declare" id="j7)SkKoD)LP6c``z3-)A"><field name="variables_type">global_variate</field><field name="VAR">op</field><field name="TYPE">char</field><next><block type="variables_declare" id="j#TLpCZKApnJJop-8+{c"><field name="variables_type">global_variate</field><field name="VAR">flag</field><field name="TYPE">boolean</field><value name="VALUE"><block type="logic_boolean" id="wBvnqIHN_U-j|QrTZYb2"><field name="BOOL">FALSE</field></block></value></block></next></block></next></block></next></block></next></block></statement></block><block type="controls_if" id="[,pXR-hp.tVrZ}c80pI3" x="0" y="299"><value name="IF0"><block type="logic_compare" id="F#f4$%L/xaJymqu.%cZ?"><field name="OP">LT</field><value name="A"><block type="inout_analog_read" id="xBP;U$,0{o`}Y*P1+$#K"><value name="PIN"><shadow type="pins_analog" id="p9[Xy}s/AIW2nS[SG[Rm"><field name="PIN">A2</field></shadow></value></block></value><value name="B"><block type="math_number" id="ltV_cc!r0q`s|ZUSQCpl"><field name="NUM">50</field></block></value></block></value><statement name="DO0"><block type="inout_digital_write2" id=")1g(r%[jlkj?0GuYu8wb"><value name="PIN"><shadow type="pins_digital" id="8-!3VwYgNbcXJF[dcmZV"><field name="PIN">5</field></shadow></value><value name="STAT"><shadow type="inout_highlow" id="kB1J/#L#3loW*iZBCvEj"><field name="BOOL">LOW</field></shadow></value><next><block type="inout_digital_write2" id="q}kgcKqEw))m15-a=1wK"><value name="PIN"><shadow type="pins_digital" id="9[ev[*}3f8FSK@zjgw56"><field name="PIN">10</field></shadow></value><value name="STAT"><shadow type="inout_highlow" id="N)a~ltN/@DA_M-+?JGXF"><field name="BOOL">LOW</field></shadow></value><next><block type="variables_set" id="OwiZUL=!E,Zq4l9KT~z#"><field name="VAR">flag</field><value name="VALUE"><block type="logic_boolean" id=":(ySt@8OVd{^^4PJ4!e["><field name="BOOL">FALSE</field></block></value><next><block type="variables_set" id="@nE-txY,r]a~IVmfS`M}"><field name="VAR">num1</field><value name="VALUE"><block type="math_random_int" id="|-WOF-i/]C4Uq=vJjL8q"><value name="FROM"><shadow type="math_number" id=")5-sGSiuwi70g5mGC58C"><field name="NUM">1</field></shadow></value><value name="TO"><shadow type="math_number" id=";SL1MJG~4Juy1g[ajnVC"><field name="NUM">100</field></shadow></value></block></value><next><block type="variables_set" id="n=cv+b-PMba?M1y-WO!@"><field name="VAR">num2</field><value name="VALUE"><block type="math_random_int" id="6Ctj0diRaG5W{loz5Q;o"><value name="FROM"><shadow type="math_number" id="XsDX$:Jfmi!qg|^17]^*"><field name="NUM">1</field></shadow></value><value name="TO"><shadow type="math_number" id="V0fS7N(ya9O|,HPB]cu|"><field name="NUM">100</field></shadow></value></block></value><next><block type="variables_set" id="2OXSO-zz9m]6*1?B[J||"><field name="VAR">op</field><value name="VALUE"><block type="lists_getIndex" id="(`MhyH[y97wu$U4_=_LV"><field name="VAR">mylist</field><value name="AT"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="}uYe=8oSZrWgKM#km7U("><field name="NUM">1</field></shadow><block type="math_random_int" id="RAN|=ZxbU?pmHWU|:*b1"><value name="FROM"><shadow type="math_number" id="jl:d^md5!?_zcZOM~wWs"><field name="NUM">1</field></shadow></value><value name="TO"><shadow type="math_number" id="u(*y61Cd,cYf+kBImnKX"><field name="NUM">5</field></shadow></value></block></value></block></value><next><block type="oled_init" id="0-uACf{O3lKGfjdprlr?"><field name="OLED_TYPE">SSD1306_128X64_NONAME</field><field name="NAME">u8g2</field><field name="ROTATION">U8G2_R0</field><field name="SCL">A5</field><field name="SDA">A4</field><next><block type="oled_page" id="|Ub5)J_=bUfL[6ys|u_1"><field name="NAME">u8g2</field><statement name="DO"><block type="procedures_callnoreturn" id="vlNN8Q`}A~yol1%k~*uj"><mutation xmlns="http://www.w3.org/1999/xhtml" name="page1"></mutation></block></statement><next><block type="controls_whileUntil" id="^1JGAE0VZ0ij@lXm]|$,"><field name="MODE">WHILE</field><value name="BOOL"><shadow xmlns="http://www.w3.org/1999/xhtml" type="logic_boolean" id="Ng{Ohk5q~`_HkjixG8Bs"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="C60^6||pGb.+KLmEuWGg"><field name="OP">LT</field><value name="A"><block type="inout_analog_read" id="sN01*wheXWQINrcuGZO}"><value name="PIN"><shadow type="pins_analog" id="M6_,M`*$cm%*q6s)=*5L"><field name="PIN">A2</field></shadow></value></block></value><value name="B"><block type="math_number" id="csBtJ#?U)èM^vIDTKi"><field name="NUM">50</field></block></value></block></value><statement name="DO"><block type="controls_delay" id="/is%9.}z|xd4}:Zowb^U"><field name="UNIT">delay</field><value name="DELAY_TIME"><shadow type="math_number" id="6Q/6w{C7T}{kr5@tgli7"><field name="NUM">10</field></shadow></value></block></statement></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></statement></block><block type="controls_if" id="!6TMq}$!lLmzBk(N_`@a" x="0" y="799"><value name="IF0"><block type="logic_negate" id="1rItuSY~rO8CK|6x{/^O"><value name="BOOL"><block type="variables_get" id="*W4I]GR8V#jL8E*29_?i"><field name="VAR">flag</field></block></value></block></value><statement name="DO0"><block type="controls_if" id="oI5ZI1zCWVpBC}F]vkXj"><mutation xmlns="http://www.w3.org/1999/xhtml" elseif="1" else="1"></mutation><value name="IF0"><block type="inout_digital_read2" id="Ihs?yd9O{dHoBg(hX;5$"><value name="PIN"><shadow type="pins_digital" id="]-_A!HDO%|5FCVHwDJp?"><field name="PIN">2</field></shadow></value></block></value><statement name="DO0"><block type="inout_digital_write2" id="[ohC?t/Snq4|;U=gn-m{"><value name="PIN"><shadow type="pins_digital" id="^yGp{?jOx`K;I7zQ{o{I"><field name="PIN">5</field></shadow></value><value name="STAT"><shadow type="inout_highlow" id="dgkKcSvx6D?R-yYK#P?["><field name="BOOL">HIGH</field></shadow></value><next><block type="variables_set" id="1P|~BZVGr4dsAnX2PCCM"><field name="VAR">flag</field><value name="VALUE"><block type="logic_boolean" id="m%AQRYtCiVh3,tt/flNk"><field name="BOOL">TRUE</field></block></value></block></next></block></statement><value name="IF1"><block type="inout_digital_read2" id="XidRdl;J#O.79K`JQD)l"><value name="PIN"><shadow type="pins_digital" id="FrCk6Z(z0i:bj~nap+.R"><field name="PIN">4</field></shadow></value></block></value><statement name="DO1"><block type="inout_digital_write2" id=";.`@VC?`i8R$yKB}mE]s"><value name="PIN"><shadow type="pins_digital" id="Yvd.w~Tgdhi%9I5?H-r/"><field name="PIN">10</field></shadow></value><value name="STAT"><shadow type="inout_highlow" id="pLJcq4=OA#SoM^h.A.3S"><field name="BOOL">HIGH</field></shadow></value><next><block type="variables_set" id="P::ZitknjR:UodC73Yo;"><field name="VAR">flag</field><value name="VALUE"><block type="logic_boolean" id="kHxvT~q:L}r5Zu!ELG|?"><field name="BOOL">TRUE</field></block></value></block></next></block></statement><statement name="ELSE"><block type="inout_digital_write2" id=":l:_?#5~Urz#=K0z!Pc7"><value name="PIN"><shadow type="pins_digital" id="Lk-^q8m]v0X6{i|Bi?Lu"><field name="PIN">5</field></shadow></value><value name="STAT"><shadow type="inout_highlow" id=",1Xg~]E9?*R$k/:^Kyu6"><field name="BOOL">LOW</field></shadow></value><next><block type="inout_digital_write2" id="v}zzacHsd:rneCWmIk/("><value name="PIN"><shadow type="pins_digital" id="UYSvd];NLqMy4Ir|/ak5"><field name="PIN">10</field></shadow></value><value name="STAT"><shadow type="inout_highlow" id="FrOF4C;J[6F|ZLoVEkOD"><field name="BOOL">LOW</field></shadow></value></block></next></block></statement></block></statement></block><block type="procedures_defnoreturn" id="PJ~jeJDec3LRX_?xd}A9" x="0" y="1171"><field name="NAME">page1</field><statement name="STACK"><block type="oled_set_EN_Font" id="5k#?q*t.E)1FMgPHj!/Z"><field name="NAME">u8g2</field><field name="FONT_NAME">tim</field><field name="FONT_SIZE">08</field><field name="FONT_STYLE">R</field><next><block type="oled_print" id="Rp`yG!ydipZ_qpkCWgKc"><field name="NAME">u8g2</field><value name="POS_X"><shadow type="math_number" id="d6G^cV4:vuIE%#0[(l)w"><field name="NUM">0</field></shadow></value><value name="POS_Y"><shadow type="math_number" id="K%EguF*QZGsq)V+]BM$g"><field name="NUM">0</field></shadow></value><value name="TEXT"><shadow xmlns="http://www.w3.org/1999/xhtml" type="text" id=".8w8_q[x~6JV^td8I5V."><field name="TEXT">1234</field></shadow><block type="variables_get" id="/QR7@U1I)0+XBSP8Td"><field name="VAR">num1</field></block></value><next><block type="oled_print" id="*EJKX8xH-1G=#TzUDJ07"><field name="NAME">u8g2</field><value name="POS_X"><shadow type="math_number" id="(_H=4u%`IuHoLtp5.(,S"><field name="NUM">0</field></shadow></value><value name="POS_Y"><shadow type="math_number" id="1;16a/(pC,%V)c5{B@C-"><field name="NUM">20</field></shadow></value><value name="TEXT"><shadow xmlns="http://www.w3.org/1999/xhtml" type="text" id=".8w8_q[x~6JV^td8I5V."><field name="TEXT">1234</field></shadow><block type="variables_get" id="rLxhmR]a$bnT,zC|Um*["><field name="VAR">op</field></block></value><next><block type="oled_print" id="K}[r1bpu@!w-{lL%d)th"><field name="NAME">u8g2</field><value name="POS_X"><shadow type="math_number" id="}VwNVXyi}k2E5XQW^FAh"><field name="NUM">0</field></shadow></value><value name="POS_Y"><shadow type="math_number" id="jm*Km2asakB]5Ca-+$-R"><field name="NUM">40</field></shadow></value><value name="TEXT"><shadow xmlns="http://www.w3.org/1999/xhtml" type="text" id=".8w8_q[x~6JV^td8I5V."><field name="TEXT">1234</field></shadow><block type="variables_get" id="_{9$fE?bf9m.G09#n_1;"><field name="VAR">num2</field></block></value></block></next></block></next></block></next></block></statement></block></xml> |