Created
July 13, 2019 13:46
-
-
Save oschettler/7a974c80095bc79d7bcc099013abb0ff to your computer and use it in GitHub Desktop.
Das Spiel "Der heisse Draht" mit Calliope Mini und NEPO
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<export xmlns="http://de.fhg.iais.roberta.blockly"><program><block_set xmlns="http://de.fhg.iais.roberta.blockly" robottype="calliope" xmlversion="2.0" description="" tags=""><instance x="-97" y="-82"><block type="robControls_start" id="je]FFh(n)aMFCVYI|o|g" intask="true" deletable="false"><mutation declare="true"></mutation><field name="DEBUG"></field><statement name="ST"><block type="robGlobalVariables_declare" id="(e+7exG3`J~=P9_^9vPL" intask="true" deletable="false" movable="false"><mutation next="true" declaration_type="Number"></mutation><field name="VAR">spielzeit</field><field name="TYPE">Number</field><value name="VALUE"><block type="math_number" id="]+kZ:.K*1/h95CoX*ydC" intask="true"><field name="NUM">0</field></block></value></block><block type="robGlobalVariables_declare" id="d_8qkANu.]1:FU66%Mi4" intask="true" deletable="false" movable="false"><mutation next="true" declaration_type="Number"></mutation><field name="VAR">beruehrt</field><field name="TYPE">Number</field><value name="VALUE"><block type="math_number" id=")ONbx~snL,7gnyx^m9y;" intask="true"><field name="NUM">0</field></block></value></block><block type="robGlobalVariables_declare" id="HT=|dhnV]|9+F0t4G],q" intask="true" deletable="false" movable="false"><mutation next="false" declaration_type="Boolean"></mutation><field name="VAR">im_spiel</field><field name="TYPE">Boolean</field><value name="VALUE"><block type="logic_boolean" id="+ybjK[.MK|hs~%]nrD`S" intask="true"><field name="BOOL">FALSE</field></block></value></block></statement></block><block type="robControls_loopForever" id="ZyI=rC,U:odOKIvE8[n=" intask="true"><statement name="DO"><block type="robControls_ifElse" id="?%(6dTj4{Q9(-41P@p;/" intask="true"><mutation elseif="2" else="1"></mutation><repetitions><value name="IF0"><block type="robSensors_key_getSample" id="YO_U9OB{yQP%yyHz.MJ`" intask="true"><mutation mode="PRESSED"></mutation><field name="MODE">PRESSED</field><field name="SENSORPORT">A</field><field name="SLOT"></field></block></value><statement name="DO0"><block type="robProcedures_callnoreturn" id="6Of}M@XH:KPC(_sZ!kEx" intask="true"><mutation name="starte_spiel"></mutation></block></statement><value name="IF1"><block type="robSensors_key_getSample" id="Bj:,#5e(1kC865%C]Q9[" intask="true"><mutation mode="PRESSED"></mutation><field name="MODE">PRESSED</field><field name="SENSORPORT">B</field><field name="SLOT"></field></block></value><statement name="DO1"><block type="robProcedures_callnoreturn" id="#!)Fubyn%9=w?l`ubScD" intask="true"><mutation name="zeige_ergebnis"></mutation></block></statement><value name="IF2"><block type="robSensors_pintouch_getSample" id="T;MIqB!x#H@t+1*ha*eh" intask="true"><mutation mode="PRESSED"></mutation><field name="MODE">PRESSED</field><field name="SENSORPORT">0</field><field name="SLOT"></field></block></value><statement name="DO2"><block type="robProcedures_callnoreturn" id="cZEZN:lV+TQ)]%?d);#k" intask="true"><mutation name="zaehle_beruehrung"></mutation></block></statement><statement name="ELSE"><block type="robMath_change" id="F@y2AmHWua=/8,rNrkgu" intask="true"><value name="VAR"><block type="variables_get" id="c#7!*lVr~I#9*qB(hj9w" intask="true"><mutation datatype="Number"></mutation><field name="VAR">spielzeit</field></block></value><value name="DELTA"><block type="math_number" id="Lj5s!KeQh3WX.0tIF@iq" intask="true"><field name="NUM">1</field></block></value></block><block type="robControls_if" id="_.wJ;|K9z2a-^.+c81*%" intask="true"><value name="IF0"><block type="logic_operation" id="}g}:alaWo`w{%(*.=oKU" intask="true"><field name="OP">AND</field><value name="A"><block type="variables_get" id="t(oZQ3#8tZYF!PutPsTz" intask="true"><mutation datatype="Boolean"></mutation><field name="VAR">im_spiel</field></block></value><value name="B"><block type="logic_compare" id="{i@rH:yYE10uuPQ[c[tb" intask="true"><field name="OP">EQ</field><value name="A"><block type="math_modulo" id="iR{89{knq7NX%:weNs@(" intask="true"><value name="DIVIDEND"><block type="variables_get" id="V?nANGbur1JlspY^u]{N" intask="true"><mutation datatype="Number"></mutation><field name="VAR">spielzeit</field></block></value><value name="DIVISOR"><block type="math_number" id="-.5{^@edTWHvd5/?+P{6" intask="true"><field name="NUM">200</field></block></value></block></value><value name="B"><block type="math_number" id="q`t`!8={a8-Mg6eTJ_2{" intask="true"><field name="NUM">0</field></block></value></block></value></block></value><statement name="DO0"><block type="mbedActions_play_note" id="V;L(YJz#Yy/eY)_jK!]f" intask="true"><field name="DURATION">125</field><field name="FREQUENCE">391.995</field></block><block type="mbedActions_display_clear" id="jOol9~s4A[u+gtbD,+?G" intask="true"></block></statement></block></statement></repetitions></block></statement></block></instance><instance x="450" y="-85"><block type="robProcedures_defnoreturn" id="-kXsZCP,ZgJ3Y~+e~4bj" intask="true"><mutation declare="false"></mutation><field name="NAME">starte_spiel</field><statement name="STACK"><block type="mbedActions_display_image" id=":9CFhcZw7c2pyXJr9T[1" intask="true"><mutation type="IMAGE"></mutation><field name="TYPE">IMAGE</field><value name="VALUE"><block type="mbedImage_image" id="g=?oYFvq^^co6w3DoBcY" intask="true"><field name="P00">#</field><field name="P10">#</field><field name="P20">#</field><field name="P30"></field><field name="P40">#</field><field name="P01">#</field><field name="P11"></field><field name="P21">#</field><field name="P31"></field><field name="P41">#</field><field name="P02">#</field><field name="P12"></field><field name="P22">#</field><field name="P32"></field><field name="P42">#</field><field name="P03">#</field><field name="P13"></field><field name="P23">#</field><field name="P33">#</field><field name="P43">#</field><field name="P04">#</field><field name="P14"></field><field name="P24"></field><field name="P34"></field><field name="P44"></field></block></value></block><block type="mbedActions_play_note" id="FRG(Wyv~ZSZ{U]Eg^c_q" intask="true"><field name="DURATION">250</field><field name="FREQUENCE">261.626</field></block><block type="mbedActions_play_note" id="y.Pv4w16.Q0|yOb06!Fm" intask="true"><field name="DURATION">250</field><field name="FREQUENCE">391.995</field></block><block type="robControls_wait_time" id="Tm|ysA*v)AK[^RiO/1L}" intask="true"><value name="WAIT"><block type="math_number" id="FdDbUtPbBF,KNrq}Ycwa" intask="true"><field name="NUM">500</field></block></value></block><block type="variables_set" id="{v#EP!,-5~:]~?j;9DKd" intask="true"><mutation datatype="Number"></mutation><field name="VAR">beruehrt</field><value name="VALUE"><block type="math_number" id="Q~4_Pc#@6gnlS3oS8dno" intask="true"><field name="NUM">0</field></block></value></block><block type="variables_set" id="2tb.^_v|eD]?{?dv[:Xc" intask="true"><mutation datatype="Number"></mutation><field name="VAR">spielzeit</field><value name="VALUE"><block type="math_number" id="ta`o3tCC1z_QzIxm)JmE" intask="true"><field name="NUM">0</field></block></value></block><block type="variables_set" id="eqABw83o-k_:r!,fbW`+" intask="true"><mutation datatype="Boolean"></mutation><field name="VAR">im_spiel</field><value name="VALUE"><block type="logic_boolean" id="[1_WQRS~)sE(-9#,wa0m" intask="true"><field name="BOOL">TRUE</field></block></value></block></statement></block></instance><instance x="475" y="362"><block type="robProcedures_defnoreturn" id="3JMDhNfdQ{[2el4E*x`8" intask="true"><mutation declare="false"></mutation><field name="NAME">zeige_ergebnis</field><statement name="STACK"><block type="variables_set" id="J4m#-B5ufcIG{aUQ^K#u" intask="true"><mutation datatype="Boolean"></mutation><field name="VAR">im_spiel</field><value name="VALUE"><block type="logic_boolean" id="]myR67h5Yhu!,m,njvmE" intask="true"><field name="BOOL">FALSE</field></block></value></block><block type="mbedActions_play_note" id="QvIEuw{E/?!;bnk7wcXy" intask="true"><field name="DURATION">250</field><field name="FREQUENCE">391.995</field></block><block type="mbedActions_play_note" id="Ze,ez0w59S*B5[F-/V`x" intask="true"><field name="DURATION">250</field><field name="FREQUENCE">261.626</field></block><block type="mbedActions_display_text" id="[R9xL5Q5HBd,9#-cLkX9" intask="true"><field name="TYPE">TEXT</field><value name="OUT"><block type="robText_join" id="2/9v+^A=ciq3I[y+aHS`" intask="true"><mutation items="3"></mutation><value name="ADD0"><block type="math_round" id="jU?ANSml38)@+sB2aLIG" intask="true"><field name="OP">ROUND</field><value name="NUM"><block type="math_arithmetic" id="|c`Sw8BOjyKd](o_+,8," intask="true"><field name="OP">DIVIDE</field><value name="A"><block type="variables_get" id="/flr6L(@%q!^B;noI{3L" intask="true"><mutation datatype="Number"></mutation><field name="VAR">spielzeit</field></block></value><value name="B"><block type="math_number" id="nOsEPOPND^?4FCobb1,:" intask="true"><field name="NUM">200</field></block></value></block></value></block></value><value name="ADD1"><block type="text" id="q@i{2s*XyRx3MBpm!Z=c" intask="true"><field name="TEXT">;</field></block></value><value name="ADD2"><block type="variables_get" id="ze#tLdXGrSIQ:xl.nRlt" intask="true"><mutation datatype="Number"></mutation><field name="VAR">beruehrt</field></block></value></block></value></block></statement></block></instance><instance x="157" y="420"><block type="robProcedures_defnoreturn" id="s]DfjZW@pV5t*lBZ]GX)" intask="true"><mutation declare="false"></mutation><field name="NAME">zaehle_beruehrung</field><statement name="STACK"><block type="mbedActions_display_image" id="qjNyTGYx[~JQ8N/GB9w!" intask="true"><mutation type="IMAGE"></mutation><field name="TYPE">IMAGE</field><value name="VALUE"><block type="mbedImage_get_image" id="pECc15K-b#D,URRGB(,5" intask="true"><field name="IMAGE">NO</field></block></value></block><block type="mbedActions_play_note" id="=H[lqyf[R-Q~5FDI3T}z" intask="true"><field name="DURATION">250</field><field name="FREQUENCE">261.626</field></block><block type="robMath_change" id="Sq2zb^8p-+,~xlgyCts1" intask="true"><value name="VAR"><block type="variables_get" id="nsI.T,Ipokz@SUy0-.!:" intask="true"><mutation datatype="Number"></mutation><field name="VAR">beruehrt</field></block></value><value name="DELTA"><block type="math_number" id="~eIk9w(zhHJI`jieEq0G" intask="true"><field name="NUM">1</field></block></value></block><block type="mbedActions_display_text" id="Y_e%|cI`P62RkUP7%Eha" intask="true"><field name="TYPE">CHARACTER</field><value name="OUT"><block type="variables_get" id="0~}ra-x%zp4s7UMVsMx?" intask="true"><mutation datatype="Number"></mutation><field name="VAR">beruehrt</field></block></value></block></statement></block></instance></block_set></program><config><block_set xmlns="http://de.fhg.iais.roberta.blockly" robottype="calliope" xmlversion="2.0" description="" tags=""><instance x="138" y="88"><block type="mbedBrick_Calliope-Brick" id="1" intask="true"></block></instance></block_set></config></export> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment