-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.blocks
1 lines (1 loc) · 15.6 KB
/
main.blocks
1
<xml xmlns="https://developers.google.com/blockly/xml"><variables><variable id="=Mw5KEdbCgZKc/[email protected]">x</variable><variable id="FTk$o6P81;Ef{!^IQ|^[">y</variable></variables><block type="pxt-on-start" id="lexhZd0hJ[1B8kA?-LxG" x="7" y="0"><comment pinned="true" h="96.16097259521484" w="238.44943237304688">Startpunkt definieren</comment><statement name="HANDLER"><block type="variables_set" id="D|6MsLJ7U:#Lh_KP5,k/"><field name="VAR" id="=Mw5KEdbCgZKc/[email protected]">x</field><value name="VALUE"><shadow type="math_number" id="e;lDZ8MO5aBQV[+*Dof@"><field name="NUM">0</field></shadow></value><next><block type="variables_set" id="1ZdBa6`b0o(IHxSm(EYq"><field name="VAR" id="FTk$o6P81;Ef{!^IQ|^[">y</field><value name="VALUE"><shadow type="math_number" id="m?J=iBOmsJijJ:w)76iY"><field name="NUM">0</field></shadow></value><next><block type="device_plot" id="^OR$W}#UFV@x,GJMEznF"><value name="x"><shadow type="math_number_minmax" id="`?_T.X5HPt7NNYNIP,Ud"><mutation min="0" max="4" label="X" precision="1"/><field name="SLIDER">0</field></shadow></value><value name="y"><shadow type="math_number_minmax" id="WnQtikcL#:FU#6Gi@7`X"><mutation min="0" max="4" label="Y" precision="1"/><field name="SLIDER">0</field></shadow></value></block></next></block></next></block></statement></block><block type="device_gesture_event" id="2+kroYAJ-31c!~DtNN.E" x="1" y="248"><field name="NAME">Gesture.TiltRight</field><comment pinned="true" h="143.61236572265625" w="300.03302001953125">Ablauf ist bei jeder Eingabe derselbe: Bildschirm löschen, variable ändern, LED am Bildschirm zeichnen</comment><statement name="HANDLER"><block type="controls_if" id="N:p/4wWKE#eu:bHvcf6E"><comment pinned="true" h="145.49195861816406" w="213.85824584960938">Bildschirm soll nicht gelöscht werden, wenn trauriges Smiley sichtbar ist</comment><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_operation" id="Vc4C.!Z6!b234!49]1/*"><field name="OP">AND</field><value name="A"><block type="logic_compare" id=".;}t;84m4*o416.M`IEJ"><field name="OP">GTE</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="IJSzHo*viHu.Yj@,r,b3"><field name="VAR" id="=Mw5KEdbCgZKc/[email protected]">x</field></block></value><value name="B"><shadow type="math_number" id="to0Q{_e|]gd`pY{YrFwQ"><field name="NUM">-1</field></shadow></value></block></value><value name="B"><block type="logic_compare" id="grK2VJl=FmpEu,9b~uD9"><field name="OP">LTE</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="*}wQxCvjEd,H51wx~Lb{"><field name="VAR" id="=Mw5KEdbCgZKc/[email protected]">x</field></block></value><value name="B"><shadow type="math_number" id="CAp0I}#hqT6^0BvWoR?,"><field name="NUM">5</field></shadow></value></block></value></block></value><statement name="DO0"><block type="device_clear_display" id="I~Tp.tVlTX6oG@TMfj[G"/></statement><next><block type="variables_change" id="n{p2jIMTWl[b/.R|%|e*"><field name="VAR" id="=Mw5KEdbCgZKc/[email protected]">x</field><value name="VALUE"><shadow type="math_number" id="gBJVl6J_5FocA[7H(v4H"><field name="NUM">1</field></shadow></value><next><block type="controls_if" id="^tI`U,_tG$(~z7rzpmYt"><mutation else="1"/><comment pinned="true" h="276.1077117919922" w="221.827880859375">Wenn Cursor innerhalb des sichtbaren Bereich, dann zeichne LED ansonst trauriges Smiley</comment><value name="IF0"><shadow type="logic_boolean" id="`#!D{^ga|xR0!``?CMkw"><field name="BOOL">TRUE</field></shadow><block type="logic_operation" id="A!G81|{~S-zzNrnC[qZv"><field name="OP">AND</field><value name="A"><block type="logic_compare" id="sDiKS#KP,NR^DX8Fig-,"><field name="OP">GTE</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="/l:DlE_IO_(hRngc,WC4"><field name="VAR" id="=Mw5KEdbCgZKc/[email protected]">x</field></block></value><value name="B"><shadow type="math_number" id="r7$!_N4`wO=B|_*w8!y9"><field name="NUM">0</field></shadow></value></block></value><value name="B"><block type="logic_compare" id="U!o?P?72*Jmp,-h9V).K"><field name="OP">LTE</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="C^Lj|G|xdnK#RjOjnY4F"><field name="VAR" id="=Mw5KEdbCgZKc/[email protected]">x</field></block></value><value name="B"><shadow type="math_number" id="w#acGY*BJjVXcxsPSnfr"><field name="NUM">4</field></shadow></value></block></value></block></value><statement name="DO0"><block type="device_plot" id="b8k4BPGhm1(V-H%x%qTE"><value name="x"><shadow type="math_number_minmax" id="hkL.=Sd1Ev4@+y|qyB}O"><mutation min="0" max="4" label="X" precision="1"/><field name="SLIDER">0</field></shadow><block type="variables_get" id="=s7Zvuh;a57p38/y[ghP"><field name="VAR" id="=Mw5KEdbCgZKc/[email protected]">x</field></block></value><value name="y"><shadow type="math_number_minmax" id="S*S.O8c/Q0,/UM784,Yt"><mutation min="0" max="4" label="Y" precision="1"/><field name="SLIDER">0</field></shadow><block type="variables_get" id="#qwqx$37UdWQ^y%I]@p+"><field name="VAR" id="FTk$o6P81;Ef{!^IQ|^[">y</field></block></value></block></statement><statement name="ELSE"><block type="basic_show_icon" id="k7s.o(1R@nqJ#1f/,h%I"><field name="i">IconNames.Sad</field></block></statement></block></next></block></next></block></statement></block><block type="device_gesture_event" id="lkg:+NC{7%y,WC5L%XkP" x="1" y="784"><field name="NAME">Gesture.TiltLeft</field><statement name="HANDLER"><block type="controls_if" id="pZ91aOAg!6C6f--+vZ/l"><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_operation" id="MCWojEJ+SRYlc1s{m5$["><field name="OP">AND</field><value name="A"><block type="logic_compare" id="y=xL]Ix2kmlp`94bixIM"><field name="OP">GTE</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="tym;U;1r~hOuVk91Q@G;"><field name="VAR" id="=Mw5KEdbCgZKc/[email protected]">x</field></block></value><value name="B"><shadow type="math_number" id="h*~R,N)rF.e!UL;7n2:w"><field name="NUM">-1</field></shadow></value></block></value><value name="B"><block type="logic_compare" id="61UaAK#:CX=XD8acpYqf"><field name="OP">LTE</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="L+2XyHNtSy3Q2iSs2TSn"><field name="VAR" id="=Mw5KEdbCgZKc/[email protected]">x</field></block></value><value name="B"><shadow type="math_number" id="Lk%XnkxR)-A@d]Qp0Ju*"><field name="NUM">5</field></shadow></value></block></value></block></value><statement name="DO0"><block type="device_clear_display" id=";b`[zn^d:}j3iZUq?E@n"/></statement><next><block type="variables_change" id="EzrZU^saEF6I%),HHd+R"><field name="VAR" id="=Mw5KEdbCgZKc/[email protected]">x</field><value name="VALUE"><shadow type="math_number" id="p|KT2U(MOsY3sb!`:loe"><field name="NUM">-1</field></shadow></value><next><block type="controls_if" id="SZ3KQ{#CyDA`RWLkHu};"><mutation else="1"/><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_operation" id="z84~qi%GFab|?!j+9vER"><field name="OP">AND</field><value name="A"><block type="logic_compare" id="6$WRzOjC$x5Bsyvs}B9Y"><field name="OP">GTE</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="62.wxb8^iyHOaYoimT78"><field name="VAR" id="=Mw5KEdbCgZKc/[email protected]">x</field></block></value><value name="B"><shadow type="math_number" id="@8{!:p_MBxcm7gkWA,7q"><field name="NUM">0</field></shadow></value></block></value><value name="B"><block type="logic_compare" id="b3Lc/[iJRl;VYP0bNOth"><field name="OP">LTE</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="}X%wg]rb]|KZ(hF%i5m["><field name="VAR" id="=Mw5KEdbCgZKc/[email protected]">x</field></block></value><value name="B"><shadow type="math_number" id="zH!u:Z06]=4x)]{Y@i.)"><field name="NUM">4</field></shadow></value></block></value></block></value><statement name="DO0"><block type="device_plot" id="9fy4i?U]^f/T#I9W5(XJ"><value name="x"><shadow type="math_number_minmax"><mutation min="0" max="4" label="X" precision="1"/><field name="SLIDER">0</field></shadow><block type="variables_get" id="7Cr:2HKi{.W6rg3$[k1z"><field name="VAR" id="=Mw5KEdbCgZKc/[email protected]">x</field></block></value><value name="y"><shadow type="math_number_minmax"><mutation min="0" max="4" label="Y" precision="1"/><field name="SLIDER">0</field></shadow><block type="variables_get" id="{qv{zqKg-Jf!?-pif;59"><field name="VAR" id="FTk$o6P81;Ef{!^IQ|^[">y</field></block></value></block></statement><statement name="ELSE"><block type="basic_show_icon" id="u8jX8VMjx!Lf:RE`}GE8"><field name="i">IconNames.Sad</field></block></statement></block></next></block></next></block></statement></block><block type="device_gesture_event" id="FeFG[JNe7EZG!K{K.,?R" x="11" y="1328"><field name="NAME">Gesture.LogoUp</field><statement name="HANDLER"><block type="controls_if" id="YE1dqdK`_#t,Ea-Fu~p|"><value name="IF0"><shadow type="logic_boolean" id="q`1b[EB;O]CP]xPJe[=e"><field name="BOOL">TRUE</field></shadow><block type="logic_operation" id="B3m8^%o2OK9gM*9f{((:"><field name="OP">AND</field><value name="A"><block type="logic_compare" id="|+Bv!`qNno6a,G!Do4u2"><field name="OP">GTE</field><value name="A"><shadow type="math_number" id="q.2!qW}IkXqJdROX53z("><field name="NUM">0</field></shadow><block type="variables_get" id="-CIec}^es2%7@qmS=3v:"><field name="VAR" id="FTk$o6P81;Ef{!^IQ|^[">y</field></block></value><value name="B"><shadow type="math_number" id="v$xC#99c1Pe5-q5kz!GU"><field name="NUM">-1</field></shadow></value></block></value><value name="B"><block type="logic_compare" id="@ox-f^zr$pg0WJ4KI_w#"><field name="OP">LTE</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="Af+|`pQ|Kbibycc{uCoA"><field name="VAR" id="FTk$o6P81;Ef{!^IQ|^[">y</field></block></value><value name="B"><shadow type="math_number" id="u-9Ttua8AX42#%?WkEO="><field name="NUM">5</field></shadow></value></block></value></block></value><statement name="DO0"><block type="device_clear_display" id="f2C:n/q,/9sRui*$1MeT"/></statement><next><block type="variables_change" id="bJXnu4x-Q@WWpQwm64[O"><field name="VAR" id="FTk$o6P81;Ef{!^IQ|^[">y</field><value name="VALUE"><shadow type="math_number" id="kxv%^h?6*Icpc`V]nr:["><field name="NUM">1</field></shadow></value><next><block type="controls_if" id="Wcd3*CUI]fy#beFZlSHd"><mutation else="1"/><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_operation" id="9elpE%w|8GOV)cr`/1kv"><field name="OP">AND</field><value name="A"><block type="logic_compare" id="[EuZ-|x)fN!O!i*g-6e;"><field name="OP">GTE</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id=".h8ZUCE-FNjI{^52~fH:"><field name="VAR" id="FTk$o6P81;Ef{!^IQ|^[">y</field></block></value><value name="B"><shadow type="math_number" id="}cGy}7v8XT^VJ??@M*~7"><field name="NUM">0</field></shadow></value></block></value><value name="B"><block type="logic_compare" id="S!H|G;BDYv5nB*:In6*G"><field name="OP">LTE</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id=",:nRQNN-wt+SW}eRP6MG"><field name="VAR" id="FTk$o6P81;Ef{!^IQ|^[">y</field></block></value><value name="B"><shadow type="math_number" id="-/cSM2|M=jQN#Kb+G:Aa"><field name="NUM">4</field></shadow></value></block></value></block></value><statement name="DO0"><block type="device_plot" id="sdM}VvhF(@B4#B.[fc@%"><value name="x"><shadow type="math_number_minmax"><mutation min="0" max="4" label="X" precision="1"/><field name="SLIDER">0</field></shadow><block type="variables_get" id="0_7{h=p1)`B+-Q)UZK}]"><field name="VAR" id="=Mw5KEdbCgZKc/[email protected]">x</field></block></value><value name="y"><shadow type="math_number_minmax" id="CiEY5a8x{g%hli!@76Uj"><mutation min="0" max="4" label="Y" precision="1"/><field name="SLIDER">0</field></shadow><block type="variables_get" id="K-mag=Jm;x%wENNq2ztO"><field name="VAR" id="FTk$o6P81;Ef{!^IQ|^[">y</field></block></value></block></statement><statement name="ELSE"><block type="basic_show_icon" id="zxgUJIva#h8*FReR_*o5"><field name="i">IconNames.Sad</field></block></statement></block></next></block></next></block></statement></block><block type="device_gesture_event" id="@@`NleSX)C`d(cp@ww2+" x="27" y="1896"><field name="NAME">Gesture.LogoDown</field><statement name="HANDLER"><block type="controls_if" id="OQ2;u;F[J9*I^/P*5u@P"><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_operation" id=")unYXv3ZhUm6p*:Na^Uc"><field name="OP">AND</field><value name="A"><block type="logic_compare" id="k:1DTlp$)4BWtYIYd+oW"><field name="OP">GTE</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="?{{4lC|mfrM`g+(lj3*,"><field name="VAR" id="FTk$o6P81;Ef{!^IQ|^[">y</field></block></value><value name="B"><shadow type="math_number" id="oB0GdJd$PR1yiBI_K*{G"><field name="NUM">-1</field></shadow></value></block></value><value name="B"><block type="logic_compare" id="/O}wJXX4RirR/ALsbxw~"><field name="OP">LTE</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="1M-F0PFBh][cL#=p#yNy"><field name="VAR" id="FTk$o6P81;Ef{!^IQ|^[">y</field></block></value><value name="B"><shadow type="math_number" id="BXY%Utl=Xu`4~vi,_YfK"><field name="NUM">5</field></shadow></value></block></value></block></value><statement name="DO0"><block type="device_clear_display" id="MJB}Q%:iPW-93YC!-nN6"/></statement><next><block type="variables_change" id="V^:f+=38l/K$B/^omCs("><field name="VAR" id="FTk$o6P81;Ef{!^IQ|^[">y</field><value name="VALUE"><shadow type="math_number" id="uye`Ls}d0y}HAl9E[4/d"><field name="NUM">-1</field></shadow></value><next><block type="controls_if" id="aKM/qT{FbFy8W]`^Y@c;"><mutation else="1"/><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_operation" id="#lo1D1bOB*pxqQmFPCWY"><field name="OP">AND</field><value name="A"><block type="logic_compare" id="/jVQUkJ}kQ,o!DXCeqo8"><field name="OP">GTE</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id=")@=`!(c3$p^OwRizH;:j"><field name="VAR" id="FTk$o6P81;Ef{!^IQ|^[">y</field></block></value><value name="B"><shadow type="math_number" id="ZJw-LF*G^Phr!g!!R(wd"><field name="NUM">0</field></shadow></value></block></value><value name="B"><block type="logic_compare" id="3JzQ$9LYxLU.R9c:o~M_"><field name="OP">LTE</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="fYEfCJI^J!g-XQv76C7b"><field name="VAR" id="FTk$o6P81;Ef{!^IQ|^[">y</field></block></value><value name="B"><shadow type="math_number" id=".C`o=qIJqN^$E]0Nr[6y"><field name="NUM">4</field></shadow></value></block></value></block></value><statement name="DO0"><block type="device_plot" id="*5s5qYOmgC0fS0n9bn?e"><value name="x"><shadow type="math_number_minmax"><mutation min="0" max="4" label="X" precision="1"/><field name="SLIDER">0</field></shadow><block type="variables_get" id="d[AS5R4@UOFAtWS7BI|w"><field name="VAR" id="=Mw5KEdbCgZKc/[email protected]">x</field></block></value><value name="y"><shadow type="math_number_minmax"><mutation min="0" max="4" label="Y" precision="1"/><field name="SLIDER">0</field></shadow><block type="variables_get" id=":p/y-^%WT%/E/Icd/Rgt"><field name="VAR" id="FTk$o6P81;Ef{!^IQ|^[">y</field></block></value></block></statement><statement name="ELSE"><block type="basic_show_icon" id="@k*@PzQOlpVrAF(whLBX"><field name="i">IconNames.Sad</field></block></statement></block></next></block></next></block></statement></block></xml>