-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.blocks
1 lines (1 loc) · 12.3 KB
/
main.blocks
1
<xml xmlns="https://developers.google.com/blockly/xml"><variables><variable id="O,Rg26mcdE|7gY!F1k@g">on</variable><variable id="_r1qP^m):Vlg8e2*Y9xX">alarm</variable><variable id="zk+c*#R5[4/p7|ZFF/Kk">list</variable><variable id="R@l)TD|huPm(S)S@kRI2">code</variable><variable id="!}a.`(].cZM`!Ufhu=cw">pin</variable><variable id="1g_]99+QkR,qzpN5V5oH">value</variable><variable id="_0}ab(IrA3h3?D!.D:F=">pinCheck</variable><variable id="/-M_*_%}BY:tt%rPFZqd">index</variable></variables><block type="pxt-on-start" id="(`k^S:p2Gv7*L/T,IXlJ" x="-1127" y="-1805"><statement name="HANDLER"><block type="variables_set" id="Is^Y*o2nK%VIY;3=%J}B"><field name="VAR" id="R@l)TD|huPm(S)S@kRI2">code</field><value name="VALUE"><block type="lists_create_with" id="wndFW7(!jsww.;v7/|yQ" inline="false"><mutation items="6" horizontalafter="3"></mutation><value name="ADD0"><shadow type="math_number" id="zU2:az4_vK*0[f;lZlBR"><field name="NUM">1</field></shadow></value><value name="ADD1"><shadow type="math_number" id="uUx0[x6v,V7b9I*L;(b%"><field name="NUM">1</field></shadow></value><value name="ADD2"><shadow type="math_number" id="cV[[Y[O6c;pGmmnCXdy."><field name="NUM">1</field></shadow></value><value name="ADD3"><shadow type="math_number" id="qNM]3wZgTU]O~y{EiT0D"><field name="NUM">0</field></shadow></value><value name="ADD4"><shadow type="math_number" id="N4WIx#eMNfq0RD2;A9:|"><field name="NUM">0</field></shadow></value><value name="ADD5"><shadow type="math_number" id="OMi;Jtp0Q`w)2pvGhl0:"><field name="NUM">0</field></shadow></value></block></value><next><block type="variables_set" id="PjL2,*Tm|jK*;k;hOtd9"><field name="VAR" id="!}a.`(].cZM`!Ufhu=cw">pin</field><value name="VALUE"><block type="lists_create_with" id="W*@7?*`i5VB?|UtR4I@:"><mutation items="0" horizontalafter="3"></mutation></block></value></block></next></block></statement></block><block type="device_forever" id="*DTWehmmX}6a0vh?x2?Q" x="-743" y="-1811"><statement name="HANDLER"><block type="controls_if" id="_9!=oxI$LDM*g/60]?]V"><value name="IF0"><shadow type="logic_boolean" id="ih{fqwI+C(^yREP$6p1o" disabled="true"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="P`CIO$V?9mst2~*zt|0M"><field name="OP">EQ</field><value name="A"><shadow type="text" id="Nn3nAE2Bb-Noliij6h@M"><field name="TEXT"></field></shadow><block type="variables_get" id="V=8LRgr!#Wijv(c]sC`$"><field name="VAR" id="_r1qP^m):Vlg8e2*Y9xX">alarm</field></block></value><value name="B"><shadow type="text" id="gbXe.D.gcP%s$G-@f[4o" disabled="true"><field name="TEXT">1</field></shadow><block type="math_number" id="[2g2Pc5Wc{0ad5]8YsX7"><field name="NUM">1</field></block></value></block></value><statement name="DO0"><block type="soundExpression_playSoundEffect" id="]@_wPD=OJ06LV5Jg!_]h"><field name="mode">SoundExpressionPlayMode.InBackground</field><value name="sound"><shadow type="soundExpression_createSoundEffect" id=";@!ILM83NC1PPZQ_~sa}" inline="true"><mutation xmlns="http://www.w3.org/1999/xhtml" _expanded="0" _input_init="true"></mutation><field name="waveShape">WaveShape.Triangle</field><field name="effect">SoundExpressionEffect.Vibrato</field><field name="interpolation">InterpolationCurve.Logarithmic</field><data>{"commentRefs":[],"fieldData":{"waveShape":"{\"duration\":2000,\"startFrequency\":5000,\"endFrequency\":228.20515084134595,\"startVolume\":255,\"endVolume\":255,\"wave\":\"triangle\",\"interpolation\":\"logarithmic\",\"effect\":\"vibrato\"}"}}</data><value name="startFrequency"><shadow type="math_number_minmax" id="9-)Ia5S._8Sl`j?Tnqkg"><mutation min="0" max="5000" label="StartFrequency" precision="0"></mutation><field name="SLIDER">5000</field></shadow></value><value name="endFrequency"><shadow type="math_number_minmax" id="fv34vJXHxU!:exa=-`%q"><mutation min="0" max="5000" label="EndFrequency" precision="0"></mutation><field name="SLIDER">228</field></shadow></value><value name="duration"><shadow type="math_number_minmax" id="zeC)7CS1NJU1uC77IF@D"><mutation min="1" max="9999" label="Duration" precision="0"></mutation><field name="SLIDER">2000</field></shadow></value><value name="startVolume"><shadow type="math_number_minmax" id="-.kbK-h*4r,-)d+Uo@?n"><mutation min="0" max="255" label="StartVolume" precision="0"></mutation><field name="SLIDER">255</field></shadow></value><value name="endVolume"><shadow type="math_number_minmax" id="0Gs],,8zJG(V=P)gmZQ#"><mutation min="0" max="255" label="EndVolume" precision="0"></mutation><field name="SLIDER">255</field></shadow></value></shadow></value></block></statement></block></statement></block><block type="device_gesture_event" id="At~Fm,K@15Y53ps8:nW!" x="-147" y="-1818"><field name="NAME">Gesture.Shake</field><statement name="HANDLER"><block type="device_clear_display" id="onO-E,8a9?0Pvc(8Ya0o"><next><block type="variables_set" id="5a{s^acFjM5Cwpi}_+_w"><field name="VAR" id="!}a.`(].cZM`!Ufhu=cw">pin</field><value name="VALUE"><block type="lists_create_with" id="wL*;dP_U|I|y^K@i.yF/"><mutation items="0" horizontalafter="3"></mutation></block></value><next><block type="variables_set" id=".-*^#)D%kF7e|]/vkk%z"><field name="VAR" id="_r1qP^m):Vlg8e2*Y9xX">alarm</field><value name="VALUE"><shadow type="math_number" id="M7!}cCP)#yem+l.UNf[z"><field name="NUM">1</field></shadow></value></block></next></block></next></block></statement></block><block type="input_logo_event" id="oK8.r5lEf=kekz[[%9?8" x="295" y="-1812"><field name="action">TouchButtonEvent.Pressed</field><statement name="HANDLER"><block type="controls_if" id="x)VXBv$M{[_5fFzAcG(#"><value name="IF0"><shadow type="logic_boolean" id="zxtp0[rvhLQ5sVtru]pQ"><field name="BOOL">TRUE</field></shadow><block type="device_get_button2" id="iVho$Rsb?wzNoSAD{Q_R"><field name="NAME">Button.A</field></block></value><statement name="DO0"><block type="array_push" id="/K2d/hOYq-YXn:63,P92"><value name="list"><block type="variables_get" id="RXIYAduJ;+?QmZs)VDnz"><field name="VAR" id="!}a.`(].cZM`!Ufhu=cw">pin</field></block></value><value name="value"><block type="math_number" id="ln/h_:}u/64Ni#G5vn=4"><field name="NUM">1</field></block></value><next><block type="device_print_message" id="3JP,XAch0Szz*bZ%[+lu"><value name="text"><shadow type="text" id="jyy392]bd0Z#M5|=D;7F"><field name="TEXT">1</field></shadow></value><next><block type="device_pause" id="ES:$VBsdEd;hDJaZ96=s"><value name="pause"><shadow type="timePicker" id="yZm80{y:e3t7~RMco~8."><field name="ms">100</field></shadow></value><next><block type="device_clear_display" id="gFVsiQc+Qh9hZCbtD^D]"></block></next></block></next></block></next></block></statement><next><block type="controls_if" id="g-_?.s#`JBqics[eg:HS"><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="device_get_button2" id="(B%`2C_}Kbm|NnFJc#i."><field name="NAME">Button.B</field></block></value><statement name="DO0"><block type="array_push" id="vYc3xRn}Q9{l_/g~+-~$"><value name="list"><block type="variables_get" id="x;}QQWnfA`^gs`v+5s?g"><field name="VAR" id="!}a.`(].cZM`!Ufhu=cw">pin</field></block></value><value name="value"><block type="math_number" id="x4uVk[.19557e7xVXWKA"><field name="NUM">0</field></block></value><next><block type="device_print_message" id="CBKH7jiMzAz-!5;UED$J"><value name="text"><shadow type="text" id="Vi{Km0gDu#dUco/-u:aK"><field name="TEXT">0</field></shadow></value><next><block type="device_pause" id="5;v;DCwe}RYEB$,Ho1bk"><value name="pause"><shadow type="timePicker" id="zFr4[nR;dqr_Qu[MGDNh"><field name="ms">100</field></shadow></value><next><block type="device_clear_display" id="y`l=;AIKCWNr*o4b^xW%"></block></next></block></next></block></next></block></statement><next><block type="controls_if" id="~w2x?Cvx_ySpGzr8^xW*"><value name="IF0"><shadow type="logic_boolean" id="kqJ!t)YelGu1[6|Y{sA+" disabled="true"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="{jzPDdK4SkKa%d~vbBw["><field name="OP">EQ</field><value name="A"><shadow type="text" id="`;@8gQ~mXOW;QrxFRgH^"><field name="TEXT"></field></shadow><block type="lists_length" id="p2K%ye3H);};dvc)^az}"><value name="VALUE"><block type="variables_get" id="~Kkw*aBT+,RK0E@uE3qY"><field name="VAR" id="!}a.`(].cZM`!Ufhu=cw">pin</field></block></value></block></value><value name="B"><shadow type="text" id="0.#hFBnX{sC(-xI*3DTZ" disabled="true"><field name="TEXT"></field></shadow><block type="math_number" id="(}nwF=L3v%XSaGX3Ow|("><field name="NUM">6</field></block></value></block></value><statement name="DO0"><block type="variables_set" id="8/l1DGFC`,_y3[H9B6w:"><field name="VAR" id="_0}ab(IrA3h3?D!.D:F=">pinCheck</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="logic_boolean" id="f(q/3wy0~+Z*y6b6qxIK"><field name="BOOL">TRUE</field></block></value><next><block type="pxt_controls_for" id="QM=Wu9}pdc}##%6L1#|D"><value name="VAR"><shadow type="variables_get_reporter" id="*%2xCx#^/Pf/iQyC%5Hb"><field name="VAR" id="/-M_*_%}BY:tt%rPFZqd">index</field></shadow></value><value name="TO"><shadow type="math_whole_number" id="|9.tgUHJr09o/zZ}-SGf"><field name="NUM">5</field></shadow></value><statement name="DO"><block type="controls_if" id="=e9FZHPgGdt^~DSE)`V6"><value name="IF0"><shadow type="logic_boolean" id="^Er9|F}XGxs$h8xZHA(x"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="!V/DMe{:*s1WCved~%J="><field name="OP">NEQ</field><value name="A"><shadow type="text" id="yg~dG}Q^RSD/~$YoMor."><field name="TEXT"></field></shadow><block type="lists_index_get" id="+pmIqY1zmCTRumD+If2m"><value name="LIST"><block type="variables_get" id="Lw?Dg`3KxgA#ij.TZX7p"><field name="VAR" id="R@l)TD|huPm(S)S@kRI2">code</field></block></value><value name="INDEX"><shadow type="math_number" id="2Z|.#h.zg9*x)#WwBA~g" disabled="true"><field name="NUM">0</field></shadow><block type="variables_get" id=",Gw_7d46=7^HrtQ0cOM*"><field name="VAR" id="/-M_*_%}BY:tt%rPFZqd">index</field></block></value></block></value><value name="B"><shadow type="text" id="o~z,Ns?k5HT+w}MoHQg_" disabled="true"><field name="TEXT"></field></shadow><block type="lists_index_get" id="U`@QYDZkV}H?l6JZR:9A"><value name="LIST"><block type="variables_get" id="$O]jrYz8n0;zN)Jm|tDd"><field name="VAR" id="!}a.`(].cZM`!Ufhu=cw">pin</field></block></value><value name="INDEX"><shadow type="math_number" disabled="true"><field name="NUM">0</field></shadow><block type="variables_get" id="#W_~pno{Z/l#_59;:@?U"><field name="VAR" id="/-M_*_%}BY:tt%rPFZqd">index</field></block></value></block></value></block></value><statement name="DO0"><block type="variables_set" id="7sLkYM.iO%xI4[/LOA-."><field name="VAR" id="_0}ab(IrA3h3?D!.D:F=">pinCheck</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="logic_boolean" id="x3YQWfztoAWsQ$R5YY}2"><field name="BOOL">FALSE</field></block></value></block></statement></block></statement><next><block type="controls_if" id="45f;$c@o8l;F`3|fQ3.|"><mutation else="1"></mutation><value name="IF0"><shadow type="logic_boolean" id="+Xh=$L=6_mTw/#n6,_#d"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="+/eoCASu@B`Ume(ee6m@"><field name="OP">EQ</field><value name="A"><shadow type="text" disabled="true"><field name="TEXT"></field></shadow><block type="variables_get" id="Ikq`Ql_,(4(MH.E[MrGE"><field name="VAR" id="_0}ab(IrA3h3?D!.D:F=">pinCheck</field></block></value><value name="B"><shadow type="text" id=")N?a-u@fihzkDEzdu?id" disabled="true"><field name="TEXT"></field></shadow><block type="logic_boolean" id="3NTrGlfrrv7D5u$63(,3"><field name="BOOL">TRUE</field></block></value></block></value><statement name="DO0"><block type="basic_show_icon" id="S^mo)4iur9M;2)#GZ}L0"><field name="i">IconNames.Yes</field><next><block type="music_stop_all_sounds" id="INVD@ZeRm2^b(0AwPk4G"><next><block type="variables_set" id="HIJ`O96zn5{S(#cQIF99"><field name="VAR" id="_r1qP^m):Vlg8e2*Y9xX">alarm</field><value name="VALUE"><shadow type="math_number" id="hX6r%_iGZ8ioHqSZC5rU"><field name="NUM">0</field></shadow></value></block></next></block></next></block></statement><statement name="ELSE"><block type="basic_show_icon" id="oxvk8roJ))G=y{VV?/xN"><field name="i">IconNames.No</field><next><block type="variables_set" id="Y7BMJ=HACB-@paE[%x(v"><field name="VAR" id="!}a.`(].cZM`!Ufhu=cw">pin</field><value name="VALUE"><block type="lists_create_with" id="_PGmxevHu{u[0r+%/pZ{"><mutation items="0" horizontalafter="3"></mutation></block></value></block></next></block></statement></block></next></block></next></block></statement></block></next></block></next></block></statement></block></xml>