-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.blocks
1 lines (1 loc) · 18.2 KB
/
main.blocks
1
<xml xmlns="https://developers.google.com/blockly/xml"><variables><variable id="y^=!^(W#5$`pNyw?y:V3">NUM4</variable><variable id="u[U^Yzm,JnzZGM1$`LWs">NUM9</variable><variable id="8C`x[o:mG7x51+f|ao6?">NUM3</variable><variable id="uD[t3N3FWsOj#jOrNIca">NUM1</variable><variable id="8VakQ^(O9]PAy;@E[T8?">NUM7</variable><variable id="~XAxAoQ1:U:m2s~SI@En">NUM5</variable><variable id="13W_|{J8}hF9?Al;PmF7">NUM2</variable><variable id="V=z}I8UAYji:pc@@Hki]">NUM0</variable><variable id="Z;(){v}`(K%V]J)`~)iQ">NUM6</variable><variable id="vpYfZGM=`+N=,H,sDr`_">NUM8</variable><variable id="KLGvN4A}SSN;dp]89qLY">Power</variable><variable id="A`ELf8jQ^_Q/}Iq54xpM">Menu</variable><variable id="4U8aEI8euOx)GrnhF-z6">Plus</variable><variable id="*6AE(_!)aa8WK.Dx?|xa">Mode</variable><variable id="3teC;1PtZ?Z_Y;A6biP!">Return</variable><variable id="mNu0XY?[#?^4t(TX_e*!">Mute</variable><variable id="1a|Uz!YCFb3}]HZC0o2a">Play</variable><variable id="DX5U;ox(3HK#-h(5ydh{">FastForward</variable><variable id="%5FT^pAp3op~*zl/NryR">FastBackward</variable><variable id="D:Qj|;V,5Y/b#XT=:dDl">Minus</variable></variables><block type="pxt-on-start" id="BpM#SYszr-rZHmsGN0|L" x="0" y="0"><statement name="HANDLER"><block type="function_call" id=",]9wJXXw:pfY%V@;q|@j"><mutation name="menu" functionid="K,7Ch8J{+%KX!CV,MQ|U"/></block></statement></block><block type="function_definition" id="[]:2S(v=8~{*p7l@3gK^" collapsed="true" x="206" y="0"><mutation name="initialize" functionid="Y8-_?sKT%L|;UrWRihS?"/><field name="function_name">initialize</field><statement name="STACK"><block type="ir_init" id=",5[)KjG2hBIE.(xH#-!*"><field name="pin">Pins.P2</field><next><block type="OLED_init" id=":bc{MPAsOR?KF[Rx:#3M"><value name="width"><shadow type="math_number" id="`MAv|Jg+Sdlk7`0|BRsw"><field name="NUM">128</field></shadow></value><value name="height"><shadow type="math_number" id="mCHF#Ov%WKfB,[sM9Oqi"><field name="NUM">64</field></shadow></value><next><block type="variables_set" id="}xGX#xrLBtNWtdEDRi6f"><field name="VAR" id="%5FT^pAp3op~*zl/NryR">FastBackward</field><value name="VALUE"><shadow type="math_number" id="Q}qW`jz/UW}kXLN$Rp;K"><field name="NUM">0</field></shadow></value><next><block type="variables_set" id="JY@u!V]t7^x7$fHwI3c="><field name="VAR" id="DX5U;ox(3HK#-h(5ydh{">FastForward</field><value name="VALUE"><shadow type="math_number" id="U;g;/h3/UBIh^PQpPLh7"><field name="NUM">0</field></shadow></value><next><block type="variables_set" id="9@~v@iJMTO,OE_K=%j/R"><field name="VAR" id="A`ELf8jQ^_Q/}Iq54xpM">Menu</field><value name="VALUE"><shadow type="math_number" id="a5)C~=Ylapcj[C?mD~A+"><field name="NUM">0</field></shadow></value><next><block type="variables_set" id="zRi-(tR1~k}O]=gm8eje"><field name="VAR" id="D:Qj|;V,5Y/b#XT=:dDl">Minus</field><value name="VALUE"><shadow type="math_number" id="!M18MB{qRq;*lvIk=?h^"><field name="NUM">0</field></shadow></value><next><block type="variables_set" id="^A[{jf{grnsRD?Va[VHv"><field name="VAR" id="*6AE(_!)aa8WK.Dx?|xa">Mode</field><value name="VALUE"><shadow type="math_number" id="OxzjC62DbZ%Qp@Dw]5@C"><field name="NUM">0</field></shadow></value><next><block type="variables_set" id="1)1IXDUdiIJ;fc@aZ$#2"><field name="VAR" id="mNu0XY?[#?^4t(TX_e*!">Mute</field><value name="VALUE"><shadow type="math_number" id="7-rM8CL-I|mP+6:bc!`B"><field name="NUM">0</field></shadow></value><next><block type="variables_set" id="F(P8{EhCbTzFPj#DM!#l"><field name="VAR" id="V=z}I8UAYji:pc@@Hki]">NUM0</field><value name="VALUE"><shadow type="math_number" id="M]~Xw8S@Y!:w+VNg:W1q"><field name="NUM">0</field></shadow></value><next><block type="variables_set" id="cfh`1~CFs?!!|WJXs]#V"><field name="VAR" id="uD[t3N3FWsOj#jOrNIca">NUM1</field><value name="VALUE"><shadow type="math_number" id="#|hiNnS3@G(.hs+A8Rej"><field name="NUM">0</field></shadow></value><next><block type="variables_set" id="sqFTBg:PZkt(iDAcd1cI"><field name="VAR" id="13W_|{J8}hF9?Al;PmF7">NUM2</field><value name="VALUE"><shadow type="math_number" id="%f7Ial`)82E~1`ceczQb"><field name="NUM">0</field></shadow></value><next><block type="variables_set" id="0UScX^}o)gV]+5=KcI93"><field name="VAR" id="8C`x[o:mG7x51+f|ao6?">NUM3</field><value name="VALUE"><shadow type="math_number" id="=iQQy57h~[?EU;Q,V4N?"><field name="NUM">0</field></shadow></value><next><block type="variables_set" id="8?3!l+eN2p9NqR5}0GLA"><field name="VAR" id="y^=!^(W#5$`pNyw?y:V3">NUM4</field><value name="VALUE"><shadow type="math_number" id="s;7-xZEi(|^O[9:CMk}#"><field name="NUM">0</field></shadow></value><next><block type="variables_set" id="7D1K6Tr~n0v?h%}[_SpP"><field name="VAR" id="~XAxAoQ1:U:m2s~SI@En">NUM5</field><value name="VALUE"><shadow type="math_number" id="U~2W]bMGSu9[L1N;(o~C"><field name="NUM">0</field></shadow></value><next><block type="variables_set" id="0+.^;Qq;!^Lm;(ZQ({u2"><field name="VAR" id="Z;(){v}`(K%V]J)`~)iQ">NUM6</field><value name="VALUE"><shadow type="math_number" id="q:9rOoGGs.06$fUK9s+L"><field name="NUM">0</field></shadow></value><next><block type="variables_set" id=";R$AE/?/#;R@jn5kP;[!"><field name="VAR" id="8VakQ^(O9]PAy;@E[T8?">NUM7</field><value name="VALUE"><shadow type="math_number" id="kETA?6[]}WWC$|!_TdAs"><field name="NUM">0</field></shadow></value><next><block type="variables_set" id="X%i@Yk[e.2xP/9V_M5Qo"><field name="VAR" id="vpYfZGM=`+N=,H,sDr`_">NUM8</field><value name="VALUE"><shadow type="math_number" id="a31OZseor?gu@t9%oy2_"><field name="NUM">0</field></shadow></value><next><block type="variables_set" id="ckU)HXv#gli;g8uY[Rm."><field name="VAR" id="u[U^Yzm,JnzZGM1$`LWs">NUM9</field><value name="VALUE"><shadow type="math_number" id="7*|,%Q:uas$k-G~q8b]s"><field name="NUM">0</field></shadow></value><next><block type="variables_set" id="/c;cu7qphbr-Th_$G!jY"><field name="VAR" id="1a|Uz!YCFb3}]HZC0o2a">Play</field><value name="VALUE"><shadow type="math_number" id="_LQ!zgQ(C;RNbuKxLshC"><field name="NUM">0</field></shadow></value><next><block type="variables_set" id="Yb|uq`zXEUc4U,f;/z40"><field name="VAR" id="4U8aEI8euOx)GrnhF-z6">Plus</field><value name="VALUE"><shadow type="math_number" id="|0/^,Q^t]VI[by_45$C`"><field name="NUM">0</field></shadow></value><next><block type="variables_set" id="A=P]+?S/3@,q+GQb0B-T"><field name="VAR" id="KLGvN4A}SSN;dp]89qLY">Power</field><value name="VALUE"><shadow type="math_number" id="MMwvbj,:@TuNr,$Q5hEO"><field name="NUM">0</field></shadow></value><next><block type="variables_set" id="h.1N$E,:e2^!Opr$!w~!"><field name="VAR" id="3teC;1PtZ?Z_Y;A6biP!">Return</field><value name="VALUE"><shadow type="math_number" id="Z_k^*.}C]OgE?qD!CCV5"><field name="NUM">0</field></shadow></value></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></statement></block><block type="function_definition" id="m#(2J349=$9%ba|{]:[5" collapsed="true" x="430" y="0"><mutation name="_3Music" functionid="@T2oQ$2p:+TS03NHdLa~"/><field name="function_name">_3Music</field><statement name="STACK"><block type="device_start_melody" id="}UH]5W5o*4ftC[vr,J,D"><field name="options">MelodyOptions.OnceInBackground</field><value name="melody"><shadow type="device_builtin_melody" id="*No$B46a{v$h(DbkVxp."><field name="melody">Melodies.Ringtone</field></shadow></value><next><block type="OLED_clear" id="v!3grK5r|]eFd-=D4W8*"><next><block type="OLED_writeStringNewLine" id="Vb[LeEnC`[email protected]"><value name="str"><shadow type="text" id="+@CGw9wlac:oKXfF,o|n"><field name="TEXT"> Music</field></shadow></value><next><block type="OLED_writeStringNewLine" id="@qNN%EGmBQ7h_?,XEQ[v"><value name="str"><shadow type="text" id="IwXzz.O^[]YVh+U[{h/l"><field name="TEXT">1)Dadadadum</field></shadow></value><next><block type="OLED_writeStringNewLine" id="L3b-cs|WiZK$Gws$WUVF"><value name="str"><shadow type="text" id="gCG;6Mn+IJdm[ZIh);V:"><field name="TEXT">2)Entertainer</field></shadow></value><next><block type="OLED_writeStringNewLine" id="Jee1unO]VEu{].g(1X)#"><value name="str"><shadow type="text" id="$rBAmD=N#~eY$N#r0:K{"><field name="TEXT">3)Prelude</field></shadow></value><next><block type="OLED_writeStringNewLine" id="675T9*[xn.n0bXBR;!7h"><value name="str"><shadow type="text" id="8L~J@g1Fc3m=ZcZ_8Qng"><field name="TEXT">4)ode</field></shadow></value><next><block type="OLED_writeStringNewLine" id="vN8VXJD#ZhhIPUvmY,~y"><value name="str"><shadow type="text" id="KF_@ZH~BKomb2$}^Qw1g"><field name="TEXT">5)nyan</field></shadow></value><next><block type="OLED_writeStringNewLine" id="i~(YDkS]^VlqZHmaOXfY"><value name="str"><shadow type="text" id=")Ojmin:_@)useJ-k#/oy"><field name="TEXT">6)Ringtone</field></shadow></value></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></statement></block><block type="function_definition" id="Qce-lJ97/|2=}1*`K:N6" collapsed="true" x="627" y="0"><mutation name="menu" functionid="K,7Ch8J{+%KX!CV,MQ|U"/><field name="function_name">menu</field><statement name="STACK"><block type="OLED_writeStringNewLine" id="?GrdmO!^Y{Gnc~(dKvM*"><value name="str"><shadow type="text" id="Tn%E6|VPvi7D/wn!0VDW"><field name="TEXT"> menu</field></shadow></value><next><block type="OLED_writeStringNewLine" id="|9|y]?mJgPee9F!@{n/b"><value name="str"><shadow type="text" id="4YUUA|D6`cSu:*yR{1YT"><field name="TEXT">1)calculation</field></shadow></value><next><block type="OLED_writeStringNewLine" id="_OKO)9Q:rGXR3/h}:Vi4"><value name="str"><shadow type="text" id="{$Hj-V[uT,qYX~PNzG*m"><field name="TEXT">2)Game</field></shadow></value><next><block type="OLED_writeStringNewLine" id="5Y,9gtfM`17R~t/:8O1!"><value name="str"><shadow type="text" id="k/Kn(V:1b!RnaSqC$9sa"><field name="TEXT">3)Music</field></shadow></value><next><block type="OLED_writeStringNewLine" id="|}F[3@pT1yPTq^2haO_y"><value name="str"><shadow type="text" id="6DY@ClcVbSQA$#4X+bmP"><field name="TEXT">4)Radio</field></shadow></value><next><block type="OLED_writeStringNewLine" id="rJV,XOy)B)+N4zY@zHD1"><value name="str"><shadow type="text" id="eNs$`!ZD|GXFldAwFd7@"><field name="TEXT">5)Device information</field></shadow></value><next><block type="OLED_writeStringNewLine" id="S8G+{@+/InLMAB(HVbbI"><value name="str"><shadow type="text" id="AYtPD{}#k[%]a(xE:9U$"><field name="TEXT">(C) 2020 kevin.kesager All rights reserved</field></shadow></value></block></next></block></next></block></next></block></next></block></next></block></next></block></statement></block><block type="ir_received_event" id="b-gRoOij]|+`~z$i#TA?" x="798" y="0"><field name="btn">RemoteButton.Power</field><statement name="HANDLER"><block type="variables_set" id="?ky-H=m`lEmzqf|ZEjbo"><field name="VAR" id="KLGvN4A}SSN;dp]89qLY">Power</field><value name="VALUE"><shadow type="math_number" id=";DY:wVVY(@xE/yV0lAcW"><field name="NUM">1</field></shadow></value></block></statement></block><block type="ir_received_event" id=")KU*-a~C`O@HP4WtYC,#" x="1137" y="0"><field name="btn">RemoteButton.Menu</field><statement name="HANDLER"><block type="variables_set" id="[}(NcvB:a;60H6?9cR/e"><field name="VAR" id="A`ELf8jQ^_Q/}Iq54xpM">Menu</field><value name="VALUE"><shadow type="math_number" id=":$t:]%0RCO_Xm|;c;9Lb"><field name="NUM">1</field></shadow></value></block></statement></block><block type="ir_received_event" id="vxbxm)`hdTEe%$mCCv]r" x="1467" y="0"><field name="btn">RemoteButton.Plus</field><statement name="HANDLER"><block type="variables_set" id="X7aj%7i7A^yb_Pcvi,_@"><field name="VAR" id="4U8aEI8euOx)GrnhF-z6">Plus</field><value name="VALUE"><shadow type="math_number" id="6)e@^Yx,`#M];Qd6.QTV"><field name="NUM">1</field></shadow></value></block></statement></block><block type="ir_received_event" id=")?S4p/,dMrotrP/(n~B_" x="0" y="173"><field name="btn">RemoteButton.Mode</field><statement name="HANDLER"><block type="variables_set" id="~81*(R1]RbSCd2Cpp-0W"><field name="VAR" id="*6AE(_!)aa8WK.Dx?|xa">Mode</field><value name="VALUE"><shadow type="math_number" id="E]ZG},uO[V1sI?vWmuyM"><field name="NUM">1</field></shadow></value></block></statement></block><block type="ir_received_event" id="JIIcJu^c@Hq-PBnl+j6H" x="330" y="173"><field name="btn">RemoteButton.Return</field><statement name="HANDLER"><block type="variables_set" id="*rTaZ;)xbc$et*H%vnG~"><field name="VAR" id="3teC;1PtZ?Z_Y;A6biP!">Return</field><value name="VALUE"><shadow type="math_number" id="B=x$?LCY!E[{XZmA?cW6"><field name="NUM">1</field></shadow></value></block></statement></block><block type="ir_received_event" id="`50]YrZAVl|s6^{Cqoj)" x="678" y="173"><field name="btn">RemoteButton.Play</field><statement name="HANDLER"><block type="variables_set" id="%o1][}WFO[`%SA3)*hPW"><field name="VAR" id="1a|Uz!YCFb3}]HZC0o2a">Play</field><value name="VALUE"><shadow type="math_number" id="Zd$RUV+ev#k5$)Cg_/ho"><field name="NUM">0</field></shadow></value></block></statement></block><block type="ir_received_event" id="ECU1k)Lh?:/Q#p=*kHb[" x="1008" y="173"><field name="btn">RemoteButton.FastForward</field><statement name="HANDLER"><block type="variables_set" id="4s}.Oe:=TDo*~}yhkJqv"><field name="VAR" id="DX5U;ox(3HK#-h(5ydh{">FastForward</field><value name="VALUE"><shadow type="math_number" id="Wf8b8IULUoKP!{#cOXcU"><field name="NUM">0</field></shadow></value></block></statement></block><block type="ir_received_event" id="}Ap$:}2}2b=q)..(zGA_" x="1400" y="173"><field name="btn">RemoteButton.FastBackward</field><statement name="HANDLER"><block type="variables_set" id="SPVf;[PJcq`7ZxdY9xk^"><field name="VAR" id="%5FT^pAp3op~*zl/NryR">FastBackward</field><value name="VALUE"><shadow type="math_number" id="U*_6Cqbci*cLFW2dGmE}"><field name="NUM">0</field></shadow></value></block></statement></block><block type="ir_received_event" id="}n.x9~+eMFcC~L^p/@pX" x="0" y="346"><field name="btn">RemoteButton.Minus</field><statement name="HANDLER"><block type="variables_set" id=")sP%(Tv#jII)M~3gcH@a"><field name="VAR" id="D:Qj|;V,5Y/b#XT=:dDl">Minus</field><value name="VALUE"><shadow type="math_number" id="w-U:Uhv1J+Hc@pt!,wC%"><field name="NUM">0</field></shadow></value></block></statement></block><block type="ir_received_event" id="F5dmz!qMQ?oHX5{cYR0^" x="339" y="346"><field name="btn">RemoteButton.Mute</field><statement name="HANDLER"><block type="variables_set" id="25N[O_)osHy[:uItO+Rm"><field name="VAR" id="mNu0XY?[#?^4t(TX_e*!">Mute</field><value name="VALUE"><shadow type="math_number" id="EZGWZl_LGx%{3)A3jm=m"><field name="NUM">0</field></shadow></value></block></statement></block><block type="ir_received_event" id="*qeV1J%YqJ7CtwPTC~nU" x="669" y="346"><field name="btn">RemoteButton.NUM0</field><statement name="HANDLER"><block type="variables_set" id="y9Zq6AFr^]JyR7vPi[XZ"><field name="VAR" id="V=z}I8UAYji:pc@@Hki]">NUM0</field><value name="VALUE"><shadow type="math_number" id="rmylt~j1y|[u9SCLKaq@"><field name="NUM">1</field></shadow></value></block></statement></block><block type="ir_received_event" id=";O/MqiUh%RvCmY]nrb7-" x="999" y="346"><field name="btn">RemoteButton.NUM2</field><statement name="HANDLER"><block type="variables_set" id="-N!Uf,H^O;hB?xe-R{%`"><field name="VAR" id="13W_|{J8}hF9?Al;PmF7">NUM2</field><value name="VALUE"><shadow type="math_number" id="@mFt;,L[l60i5!~_/:6P"><field name="NUM">1</field></shadow></value></block></statement></block><block type="ir_received_event" id="/bn_;o7)lv*x;kl_T3@8" x="1330" y="346"><field name="btn">RemoteButton.NUM3</field><statement name="HANDLER"><block type="variables_set" id="tRisvfo?dd,KyuyOe4Mn"><field name="VAR" id="8C`x[o:mG7x51+f|ao6?">NUM3</field><value name="VALUE"><shadow type="math_number" id="VNm0{,T3J{]hYVNWzjrP"><field name="NUM">1</field></shadow></value></block></statement></block><block type="ir_received_event" id="dknDAzE3#E/Yj3jtnLLh" x="0" y="519"><field name="btn">RemoteButton.NUM1</field><statement name="HANDLER"><block type="variables_set" id="BtR:Q2ak:#kVuQJw*Rl."><field name="VAR" id="uD[t3N3FWsOj#jOrNIca">NUM1</field><value name="VALUE"><shadow type="math_number" id="8)]]bsXV1b{?}q*qt`n!"><field name="NUM">1</field></shadow></value></block></statement></block><block type="ir_received_event" id="GEFQ?b7~oM2^^GT1S/CM" x="330" y="519"><field name="btn">RemoteButton.NUM4</field><statement name="HANDLER"><block type="variables_set" id="JU,Ds-:;~RCr]LARkBk?"><field name="VAR" id="y^=!^(W#5$`pNyw?y:V3">NUM4</field><value name="VALUE"><shadow type="math_number" id="DePlSmAdN+SoIFPW1+U)"><field name="NUM">1</field></shadow></value></block></statement></block><block type="ir_received_event" id="Tp-B-V`+pM89U`C.dKJQ" x="660" y="519"><field name="btn">RemoteButton.NUM5</field><statement name="HANDLER"><block type="variables_set" id="b9dqbOk)=[YHjpULFk.("><field name="VAR" id="~XAxAoQ1:U:m2s~SI@En">NUM5</field><value name="VALUE"><shadow type="math_number" id="I1f_==7cW~G;,HDX#LG!"><field name="NUM">1</field></shadow></value></block></statement></block><block type="ir_received_event" id="9cOq~UA?qnEP~M9G9_s?" x="991" y="519"><field name="btn">RemoteButton.NUM7</field><statement name="HANDLER"><block type="variables_set" id="6#PxHHZ)^y!8wzYHt%#p"><field name="VAR" id="8VakQ^(O9]PAy;@E[T8?">NUM7</field><value name="VALUE"><shadow type="math_number" id="Oifs8H/H%=G`=CS6UpQm"><field name="NUM">1</field></shadow></value></block></statement></block><block type="ir_received_event" id="$#_MzOYxf1B%5}kpq.5;" x="1321" y="519"><field name="btn">RemoteButton.NUM8</field><statement name="HANDLER"><block type="variables_set" id="|4JE;JjypB-{xRNa)~un"><field name="VAR" id="vpYfZGM=`+N=,H,sDr`_">NUM8</field><value name="VALUE"><shadow type="math_number" id="Q?NI|ELNC~:tH8t#{xo2"><field name="NUM">1</field></shadow></value></block></statement></block><block type="ir_received_event" id="K^tn9*h)2^9UNLv`pm3Q" x="0" y="692"><field name="btn">RemoteButton.NUM6</field><statement name="HANDLER"><block type="variables_set" id="fc%CAs(HdZz!.;h_8_{+"><field name="VAR" id="Z;(){v}`(K%V]J)`~)iQ">NUM6</field><value name="VALUE"><shadow type="math_number" id="_!ntTCU%l@I#ciVj7eR+"><field name="NUM">1</field></shadow></value></block></statement></block><block type="ir_received_event" id="vJS.NlU+w0)JV[4|gp(^" x="330" y="692"><field name="btn">RemoteButton.NUM9</field><statement name="HANDLER"><block type="variables_set" id="B6Ip.tONF-_;7Vg(Lgr{"><field name="VAR" id="u[U^Yzm,JnzZGM1$`LWs">NUM9</field><value name="VALUE"><shadow type="math_number" id="irpYh/hlaJXXeg[B(8Mc"><field name="NUM">1</field></shadow></value></block></statement></block></xml>