Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <xml xmlns="http://www.w3.org/1999/xhtml">
- <block type="import_microbit" id="+]sVheld1o#}oYxm37_(" x="-741" y="-51">
- <next>
- <block type="import_math" id="g8,#fsy1kk./VGJgq4Fk">
- <next>
- <block type="importneo" id="o0m69J`Rlw8#H,Hw!e#l">
- <next>
- <block type="setneo" id="axULON/ax^#.3l.T6N.e">
- <field name="NAME">np</field>
- <field name="inputneo">pin0,36</field>
- <next>
- <block type="neoclear" id=")`{yCjs214tLHKgU(4Kp">
- <field name="NAME">np</field>
- <next>
- <block type="neoshow" id="sLU7``Of8N32kkTd.mo#">
- <field name="NAME">np</field>
- <next>
- <block type="varinlines" id="UlJ^nt857B^!h9WaJrBS">
- <field name="NAME">hours</field>
- <field name="text">=</field>
- <value name="NAME">
- <block type="textinline" id="VEcdh*:j!Bo/9xBLz8M3">
- <field name="text">4</field>
- </block>
- </value>
- <next>
- <block type="varinlines" id="r)/sqQCC*kpSEJ0,mR5]">
- <field name="NAME">minutes</field>
- <field name="text">=</field>
- <value name="NAME">
- <block type="textinline" id="idHrq1_pm{GSQ8lxl#e/">
- <field name="text">30</field>
- </block>
- </value>
- <next>
- <block type="varinlines" id="[u~D}YFAY.PqQ@95b9)4">
- <field name="NAME">displayHour</field>
- <field name="text">=</field>
- <value name="NAME">
- <block type="textinline" id="YCh^7PWF#k@Q54%`?}Lk">
- <field name="text">hours</field>
- </block>
- </value>
- <next>
- <block type="whileout" id="`)IV1W^J^m%HO[U][A+[">
- <value name="cond">
- <shadow type="textinline" id="WFsHZkUCQSYWms0aAw-=">
- <field name="text">True</field>
- </shadow>
- </value>
- <statement name="DO">
- <block type="disclear" id="NT3]pltm0U=_`UBXxGjw">
- <next>
- <block type="image" id="C*Y`5~nSlljM2Ky+/XY4">
- <field name="image">(minutes % 5)</field>
- <next>
- <block type="for" id="%9fG~:3wOSAHeu!2|G`.">
- <field name="letter">i</field>
- <field name="no">12</field>
- <statement name="DO">
- <block type="varinlines" id="Gzc58L(:y0*YAa/Riky*">
- <field name="NAME">red</field>
- <field name="text">=</field>
- <value name="NAME">
- <block type="textinline" id="cZ=P(aA]:.GB#uoBQKEh">
- <field name="text">0</field>
- </block>
- </value>
- <next>
- <block type="varinlines" id="ff8J(391`_4t!giq2JD#">
- <field name="NAME">green</field>
- <field name="text">=</field>
- <value name="NAME">
- <block type="textinline" id="VuNEiJ%U6hu/Mlb^Ew1u">
- <field name="text">0</field>
- </block>
- </value>
- <next>
- <block type="ifinline" id="RKRkkeSI2`e-T54Xbgy:">
- <value name="iftext">
- <shadow type="textinline" id="0;jNCINLdVq%/+XI?awL">
- <field name="text">True</field>
- </shadow>
- <block type="internal" id="IB2}y@`YF0m8V!s+M{Hn">
- <field name="choose">==</field>
- <value name="first">
- <shadow type="textinline" id="q?[niu~PJYW?MvDn7yuA">
- <field name="text">i</field>
- </shadow>
- </value>
- <value name="last">
- <shadow type="textinline" id=";l5hB(N~x1uG=vZtMGg8">
- <field name="text">int(minutes / 5) </field>
- </shadow>
- </value>
- </block>
- </value>
- <statement name="ifstate">
- <block type="varinlines" id="]3T9usmX7QoNvJxtvWR_">
- <field name="NAME">green</field>
- <field name="text">=</field>
- <value name="NAME">
- <block type="textinline" id="GJ0,6{)?WrZm%Y;Hb*Hi">
- <field name="text">10</field>
- </block>
- </value>
- </block>
- </statement>
- <next>
- <block type="varinlines" id="e_;DNLoIuW{ssz~m,3)7">
- <field name="NAME">displayHour</field>
- <field name="text">=</field>
- <value name="NAME">
- <block type="textinline" id="*;fFY3SFi#*;oH%U=xpr">
- <field name="text">hours</field>
- </block>
- </value>
- <next>
- <block type="ifinline" id="^51^kCE:[Nd-fYr3(H^e">
- <value name="iftext">
- <shadow type="textinline" id="0;jNCINLdVq%/+XI?awL">
- <field name="text">True</field>
- </shadow>
- <block type="internal" id="rZjKXH5^XfZqQt_HqR,u">
- <field name="choose">></field>
- <value name="first">
- <shadow type="textinline" id="KvO,pI9Z@?(Tz@!@Vn_n">
- <field name="text">minutes</field>
- </shadow>
- </value>
- <value name="last">
- <shadow type="textinline" id="]UqCyPWPDhwA64tl3R58">
- <field name="text">34</field>
- </shadow>
- </value>
- </block>
- </value>
- <statement name="ifstate">
- <block type="varinlines" id="L7wA[gU%BEk]l+4zV{AF">
- <field name="NAME">displayHour</field>
- <field name="text">=</field>
- <value name="NAME">
- <block type="textinline" id="N/N8u[9%8c(#;*k|6bRt">
- <field name="text">(displayHour + 1) % 12</field>
- </block>
- </value>
- </block>
- </statement>
- <next>
- <block type="ifinline" id="_1nD=_#BY69u]bn6!pHs">
- <value name="iftext">
- <shadow type="textinline" id="0;jNCINLdVq%/+XI?awL">
- <field name="text">True</field>
- </shadow>
- <block type="internal" id="X(21efzDl:UCSl,3yqWF">
- <field name="choose">==</field>
- <value name="first">
- <shadow type="textinline" id="c^hXr?+Iu)L;0mdw[hTr">
- <field name="text">i</field>
- </shadow>
- </value>
- <value name="last">
- <shadow type="textinline" id="eTf4hj:YQnP!e)x8J~Wg">
- <field name="text">displayHour </field>
- </shadow>
- </value>
- </block>
- </value>
- <statement name="ifstate">
- <block type="varinlines" id="mwU}a2Pi3VVG}HKNkD40">
- <field name="NAME">red</field>
- <field name="text">=</field>
- <value name="NAME">
- <block type="textinline" id="eh^]9e|Hk~EA(w8rUnXY">
- <field name="text">10</field>
- </block>
- </value>
- </block>
- </statement>
- <next>
- <block type="neovar" id="X:pL]=L6/3`pS~YIITI{">
- <field name="NAME">np</field>
- <field name="neonum">i</field>
- <field name="colour">red,green,0</field>
- <next>
- <block type="neoshow" id="/r^`8No+M9^jWd?,H#,B">
- <field name="NAME">np</field>
- <next>
- <block type="neovar" id="rW;#_3Yej^m58au*pcZ9">
- <field name="NAME">np</field>
- <field name="neonum">(i * 2) + 12</field>
- <field name="colour">0,green,0</field>
- <next>
- <block type="neoshow" id="@51%FfF*csZ(3eo6CY{u">
- <field name="NAME">np</field>
- </block>
- </next>
- </block>
- </next>
- </block>
- </next>
- </block>
- </next>
- </block>
- </next>
- </block>
- </next>
- </block>
- </next>
- </block>
- </next>
- </block>
- </next>
- </block>
- </statement>
- <next>
- <block type="varinlines" id="}rEqnLJH2NpoNL.4LZm*">
- <field name="NAME">exitLoop</field>
- <field name="text">=</field>
- <value name="NAME">
- <block type="textinline" id="L8Y+pIkC^H+,S=?Y#JD+">
- <field name="text">588</field>
- </block>
- </value>
- <next>
- <block type="whileout" id="~u8wMJt*TU*h/AuR#uaT">
- <value name="cond">
- <shadow type="textinline" id="rE%jl4n?3(.tMf]JFp)p">
- <field name="text">True</field>
- </shadow>
- <block type="internal" id="TlMyvt;ZVE9pv4Nw:*wZ">
- <field name="choose">!=</field>
- <value name="first">
- <shadow type="textinline" id="mx[VI%ff`i7AovcUUv9+">
- <field name="text">exitLoop</field>
- </shadow>
- </value>
- <value name="last">
- <shadow type="textinline" id="5NR:TBJ=)}8S_39GnKps">
- <field name="text">0</field>
- </shadow>
- </value>
- </block>
- </value>
- <statement name="DO">
- <block type="ifinline" id="25ZU)Q|?VNP;/[OL=AwS">
- <value name="iftext">
- <shadow type="textinline" id=";F]TmfbKHdPtuSzkrGT_">
- <field name="text">True</field>
- </shadow>
- <block type="buttonispressed" id="QVTmkyG%(7)#d8I563P4">
- <field name="NAME">a</field>
- </block>
- </value>
- <statement name="ifstate">
- <block type="sleep" id="JRu7DLSd-NCb`Jp839o~">
- <field name="sleep">200</field>
- <next>
- <block type="varinlines" id="e*n[xBQZV?K?`#!mOAT/">
- <field name="NAME">hours</field>
- <field name="text">=</field>
- <value name="NAME">
- <block type="textinline" id=":wQ;qO_[#s@K|dqjLe@}">
- <field name="text">(hours + 1) % 12</field>
- </block>
- </value>
- <next>
- <block type="varinlines" id="HIKSx.zg{lJJZ`#`6-wo">
- <field name="NAME">minutes</field>
- <field name="text">=</field>
- <value name="NAME">
- <block type="textinline" id="lQ49={ro:6kVaL,z5m;@">
- <field name="text">minutes - 1</field>
- </block>
- </value>
- <next>
- <block type="varinlines" id="#cG^O:YiwH0_s=I~;s6_">
- <field name="NAME">exitLoop</field>
- <field name="text">=</field>
- <value name="NAME">
- <block type="textinline" id="b{^G.aO*GQc5;WXhr5g5">
- <field name="text">0</field>
- </block>
- </value>
- </block>
- </next>
- </block>
- </next>
- </block>
- </next>
- </block>
- </statement>
- <next>
- <block type="elifinline" id=":|CaIr|lDxjr,Yzg8,RL">
- <value name="iftext">
- <shadow type="textinline" id="%nj]B}tl)*u@,mN]P0_L">
- <field name="text">True</field>
- </shadow>
- <block type="buttonispressed" id="bz#v8NG-W{cmrxoz%~{N">
- <field name="NAME">b</field>
- </block>
- </value>
- <statement name="ifstate">
- <block type="ifinline" id="*[_uN3jR[zP.=9U}#]zy">
- <value name="iftext">
- <shadow type="textinline" id="uE|H%YX/9+JUQ`iSfDC:">
- <field name="text">True</field>
- </shadow>
- <block type="internal" id="I*Z04aAOS3x,qe9vP,Jr">
- <field name="choose">==</field>
- <value name="first">
- <shadow type="textinline" id="-OKrt%5o^XIk.xV0TZ9Q">
- <field name="text">minutes</field>
- </shadow>
- </value>
- <value name="last">
- <shadow type="textinline" id="bb1[46mNWMzN~[jzgDce">
- <field name="text">59</field>
- </shadow>
- </value>
- </block>
- </value>
- <statement name="ifstate">
- <block type="varinlines" id="SJ2jk,S[fY7Xxe.ENvSg">
- <field name="NAME">hours</field>
- <field name="text">=</field>
- <value name="NAME">
- <block type="textinline" id="b04lkBe73Fbs]j,lV2Xz">
- <field name="text">(hours - 1)</field>
- </block>
- </value>
- </block>
- </statement>
- <next>
- <block type="sleep" id="aZ7b*9E/(dy3w=2uLaPv">
- <field name="sleep">200</field>
- <next>
- <block type="varinlines" id="/jNz-`PjvkJ#w,hnVs0*">
- <field name="NAME">exitLoop</field>
- <field name="text">=</field>
- <value name="NAME">
- <block type="textinline" id="yL!p+`Z4#0ZJKv[t:JdQ">
- <field name="text">0</field>
- </block>
- </value>
- </block>
- </next>
- </block>
- </next>
- </block>
- </statement>
- <next>
- <block type="else" id="Or.~*U:Yzz6=jM7oi}f#">
- <statement name="DO">
- <block type="sleep" id=".]b!M7L~d3%6P}:;JwX5">
- <field name="sleep">100</field>
- <next>
- <block type="varinlines" id="0fX/KBBo-|!-pqr]5s{Z">
- <field name="NAME">exitLoop</field>
- <field name="text">=</field>
- <value name="NAME">
- <block type="textinline" id="N(#*K5-e=dv+?v|eU]B.">
- <field name="text">exitLoop -1</field>
- </block>
- </value>
- </block>
- </next>
- </block>
- </statement>
- </block>
- </next>
- </block>
- </next>
- </block>
- </statement>
- <next>
- <block type="ifinline" id="*Y)KcBl=cZk4l6NA}DvG">
- <value name="iftext">
- <shadow type="textinline" id="0;jNCINLdVq%/+XI?awL">
- <field name="text">True</field>
- </shadow>
- <block type="internal" id="TFM;J5m*a2`vKi^gE.sU">
- <field name="choose">==</field>
- <value name="first">
- <shadow type="textinline" id="1%E_YRMz6IRW.WV[K8Hm">
- <field name="text">minutes</field>
- </shadow>
- </value>
- <value name="last">
- <shadow type="textinline" id="V@GC(Cd/vY]0OBSlQYdL">
- <field name="text">59</field>
- </shadow>
- </value>
- </block>
- </value>
- <statement name="ifstate">
- <block type="varinlines" id="LD%hbGvV!mIKBNQl1tv=">
- <field name="NAME">minutes</field>
- <field name="text">=</field>
- <value name="NAME">
- <block type="textinline" id="~5R|]s/w+4-kx1ol[.RN">
- <field name="text">0</field>
- </block>
- </value>
- <next>
- <block type="varinlines" id="x-l))*/hBV!aaVr8P#?6">
- <field name="NAME">hours</field>
- <field name="text">=</field>
- <value name="NAME">
- <block type="textinline" id="T6PKl5~7o1}e-kCZYren">
- <field name="text">(hours + 1) % 12</field>
- </block>
- </value>
- </block>
- </next>
- </block>
- </statement>
- <next>
- <block type="else" id="Mh(EL0tD)%*A}6q9UuA_">
- <statement name="DO">
- <block type="varinlines" id="z4/s;rldHlGH?}AdhcC=">
- <field name="NAME">minutes</field>
- <field name="text">=</field>
- <value name="NAME">
- <block type="textinline" id="^%w_~`_Jv+N28fz*M*Vk">
- <field name="text">minutes + 1</field>
- </block>
- </value>
- </block>
- </statement>
- </block>
- </next>
- </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>
- </next>
- </block>
- </xml>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement