-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.blocks
1 lines (1 loc) · 7.62 KB
/
main.blocks
1
<xml xmlns="https://developers.google.com/blockly/xml"><variables><variable id="mY(-O8%m.B=}m;pH!^Yd">snelheid</variable><variable id="#8mq06v`,EK@ZZjO#=oD">moveMotorZIP</variable></variables><block type="pxt-on-start" id="?(=kD0YKOx=tjMKgOMUj" x="0" y="0"><statement name="HANDLER"><block type="device_show_leds" id="Eq2mwSza.DdXoW;.=As["><field name="LEDS">` . . . . . . # . # . . . . . . . # . # . . . # . . `</field><next><block type="variables_set" id="yh]MWM+t}@WOgDP[[JNE"><field name="VAR" id="mY(-O8%m.B=}m;pH!^Yd">snelheid</field><value name="VALUE"><shadow type="math_number" id="=rU/6#SuUcieH-`BejW8"><field name="NUM">0</field></shadow></value><next><block type="variables_set" id="v*nuk;J,XvD?)oFE]4MH"><field name="VAR" id="#8mq06v`,EK@ZZjO#=oD">moveMotorZIP</field><value name="VALUE"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number"><field name="NUM">0</field></shadow><block type="kitronik_move_motor_ZIP_LED_create" id="3W2ACszA{=k04+~jau`+"><value name="numZips"><shadow type="math_number" id="qz5JkVHR0=9L2o.t%i)D"><field name="NUM">4</field></shadow></value></block></value><next><block type="kitronik_move_motor_set_zip_color" id="gpMjh=D!+%y|a|{w{E0c"><value name="moveMotorZIP"><block type="variables_get" id="m*zMazL}U/mI6:JGSeDp"><field name="VAR" id="#8mq06v`,EK@ZZjO#=oD">moveMotorZIP</field></block></value><value name="zipLedNum"><shadow type="math_number" id="AL([5U]C$WVm^_F_LX$^"><field name="NUM">0</field></shadow></value><value name="rgb"><shadow type="kitronik_move_motor_colors" id="U8DvsWVKidi6PpSt@elX"><field name="color">Kitronik_Move_Motor.ZipLedColors.Red</field></shadow></value><next><block type="kitronik_move_motor_set_zip_color" id="{3(:o@ZyNa)cFx!82wi["><value name="moveMotorZIP"><block type="variables_get" id="UxnmV{ks`+7$eRm4TCiy"><field name="VAR" id="#8mq06v`,EK@ZZjO#=oD">moveMotorZIP</field></block></value><value name="zipLedNum"><shadow type="math_number" id="B~3gn]B[5;b([x)vcA)5"><field name="NUM">1</field></shadow></value><value name="rgb"><shadow type="kitronik_move_motor_colors" id="Z^*t-@nM1sVO_6~3dCOm"><field name="color">Kitronik_Move_Motor.ZipLedColors.Blue</field></shadow></value><next><block type="kitronik_move_motor_set_zip_color" id=")Mp$),Tk_|a8ZcDmKq20"><value name="moveMotorZIP"><block type="variables_get" id="iAZz%EXW{{.J/fhP]wlg"><field name="VAR" id="#8mq06v`,EK@ZZjO#=oD">moveMotorZIP</field></block></value><value name="zipLedNum"><shadow type="math_number" id="6O$Cc!,c}Lr(yTMKb7~U"><field name="NUM">2</field></shadow></value><value name="rgb"><shadow type="kitronik_move_motor_colors" id="3HB9!@?eFhaRR-cB-TWp"><field name="color">Kitronik_Move_Motor.ZipLedColors.Red</field></shadow></value><next><block type="kitronik_move_motor_set_zip_color" id="4IFgfcdY@A~M*@P}T9GX"><value name="moveMotorZIP"><block type="variables_get" id=",_,GZB+O_EDpAlogHDPe"><field name="VAR" id="#8mq06v`,EK@ZZjO#=oD">moveMotorZIP</field></block></value><value name="zipLedNum"><shadow type="math_number" id="5|v?))B{f}Y_*pur.-e2"><field name="NUM">3</field></shadow></value><value name="rgb"><shadow type="kitronik_move_motor_colors" id="!bDvdjd?j|!R,OGfc*ea"><field name="color">Kitronik_Move_Motor.ZipLedColors.Blue</field></shadow></value><next><block type="controls_repeat_ext" id="UEB[g;|btr7,Hn({NN,="><value name="TIMES"><shadow type="math_whole_number" id="iF$NM$ZGzgyAuH:nPbv@"><field name="NUM">10</field></shadow></value><statement name="DO"><block type="kitronik_move_motor_display_rotate" id="G^$`)Q,(!fCs)poNgetc"><value name="moveMotorZIP"><block type="variables_get" id="{*YhmZ2%rd7$A(Sj[gA;"><field name="VAR" id="#8mq06v`,EK@ZZjO#=oD">moveMotorZIP</field></block></value><value name="offset"><shadow type="math_number" id="Z/E(KXmVHXV{s?eW$?t6"><field name="NUM">1</field></shadow></value><next><block type="kitronik_move_motor_display_show" id=".9U5+_INB37}QI3;v}5("><value name="moveMotorZIP"><block type="variables_get" id="y4(RSt.:^MD._wxjsyvb"><field name="VAR" id="#8mq06v`,EK@ZZjO#=oD">moveMotorZIP</field></block></value><next><block type="device_pause" id="WSGv+%yZD,?j464genRP"><value name="pause"><shadow type="timePicker" id="L@-#(rkY#[xSN6y{|{o="><field name="ms">100</field></shadow></value></block></next></block></next></block></statement></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></statement></block><block type="device_forever" id="v6^9T9{3F48#,lovPAv7" x="602" y="19"><statement name="HANDLER"><block type="kitronik_move_motor_ultrasonic_units" id="rXE?,,XU6Dg14tnb+{kP"><field name="unit">Kitronik_Move_Motor.Units.Centimeters</field><next><block type="controls_if" id="=Xv%/+T,yQH{2R,$YLfu"><mutation else="1"/><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="238tRv3;5cay{MyG`S+a"><field name="OP">LT</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="kitronik_move_motor_ultrasonic_measure" id="7jP.2sTO09u54)(mHaW?"/></value><value name="B"><shadow type="math_number" id="S%NP3U)^u,,C:Bqs-3cz"><field name="NUM">30</field></shadow></value></block></value><statement name="DO0"><block type="kitronik_move_motor_stop" id="B;Qo`WVu~)8Jx]vn!Sns"><next><block type="kitronik_move_motor_horn" id=":{v2p@6A5paNTE[MT%ua"><next><block type="kitronik_move_motor_spin" id="R2|_Z6sIK=$F+9qy[f%g"><field name="direction">Kitronik_Move_Motor.SpinDirections.Left</field><value name="speed"><shadow type="math_number_minmax"><mutation min="-Infinity" max="100" label="Speed" precision="0"/><field name="SLIDER">20</field></shadow><block type="variables_get" id="D5o[RgaFb[t:0`C|faEU"><field name="VAR" id="mY(-O8%m.B=}m;pH!^Yd">snelheid</field></block></value><next><block type="device_pause" id="0YZEZl6i~A3p9yC/CA(A"><value name="pause"><shadow type="timePicker" id="u+KUa}!iHDg#W/WM0WDs"><field name="ms">100</field></shadow></value></block></next></block></next></block></next></block></statement><statement name="ELSE"><block type="kitronik_move_motor_drive" id="}~y3xOnbK4DmZPu]$^vy"><field name="direction">Kitronik_Move_Motor.DriveDirections.Forward</field><value name="speed"><shadow type="math_number_minmax"><mutation min="-Infinity" max="100" label="Speed" precision="0"/><field name="SLIDER">50</field></shadow><block type="variables_get" id="$lVw9uzvks*R+b!,hj2l"><field name="VAR" id="mY(-O8%m.B=}m;pH!^Yd">snelheid</field></block></value></block></statement></block></next></block></statement></block><block type="input_on_sound" id="k?78R%[email protected]" x="589" y="571"><field name="sound">DetectedSound.Quiet</field><statement name="HANDLER"><block type="variables_set" id="9S}F+{HQ4P=C$!^Fk1n{"><field name="VAR" id="mY(-O8%m.B=}m;pH!^Yd">snelheid</field><value name="VALUE"><shadow type="math_number" id="JVQp2UYFA@+TAh)$)5:m"><field name="NUM">0</field></shadow></value></block></statement></block><block type="device_gesture_event" id="nCwp0,T1CN0pyhL?Ig%:" x="596" y="753"><field name="NAME">Gesture.Shake</field><statement name="HANDLER"><block type="variables_set" id="+Vn?68jd#k!gjC~KQ5$F"><field name="VAR" id="mY(-O8%m.B=}m;pH!^Yd">snelheid</field><value name="VALUE"><shadow type="math_number" id=";,a`0a,2Yj7mS-8A@)EX"><field name="NUM">0</field></shadow></value></block></statement></block><block type="device_button_event" id="a%h??$Sj=c@2[*563{yZ" x="260" y="771"><field name="NAME">Button.A</field><statement name="HANDLER"><block type="variables_set" id="9AZ(.3vFS|{_}-f=,I7F"><field name="VAR" id="mY(-O8%m.B=}m;pH!^Yd">snelheid</field><value name="VALUE"><shadow type="math_number" id="$P6!6M(!1yI;$]MpA)1i"><field name="NUM">40</field></shadow></value></block></statement></block></xml>