-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.blocks
4 lines (3 loc) · 4.8 KB
/
main.blocks
1
2
3
4
<xml xmlns="https://developers.google.com/blockly/xml"><block type="device_forever" id="r$0{Yg8cAMA!j7ON/]WR" x="12" y="-251"><statement name="HANDLER"><block type="radio_set_group" id="4BFuoz=XN=X9$j|che8X"><value name="ID"><shadow type="math_number_minmax" id="S!EI-/NNsL{[~{uD]2ef"><mutation min="0" max="255" label="Number" precision="0"/><field name="SLIDER">80</field></shadow></value><next><block type="device_led_enable" id="M}XGl?-gc/uk;d[.[O%8"><value name="on"><shadow type="logic_boolean" id="wj`5X2oPu361O%Blg?_e"><field name="BOOL">TRUE</field></shadow></value></block></next></block></statement></block><block type="device_gesture_event" id="wZWCMIb:w+pA81h#!dkX" x="402" y="-209"><field name="NAME">Gesture.Shake</field><statement name="HANDLER"><block type="radio_datagram_send" id="Tyht^wWtL{#2oKIPHBM-"><value name="value"><shadow type="math_number" id="/k.eqc|KHLC]mnH/!7xe"><field name="NUM">8</field></shadow></value></block></statement></block><block type="device_forever" id="D:3}tT(lqaJK9]k.je.g" x="18" y="-25"><comment pinned="true" h="80" w="160" relx="-192.86374052598006" rely="-0.757925633953489">forward</comment><statement name="HANDLER"><block type="controls_if" id="zH=|Lvb(tDi0qu{rf/,3"><value name="IF0"><shadow type="logic_boolean" id="G(wPD*)Yr6rUj-9jnit`"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="BA:MO79.^boD71!@b{u!"><field name="OP">LT</field><value name="A"><shadow type="math_number" id="xF3?vM`f=Sz`lEn5Hi{I"><field name="NUM">0</field></shadow><block type="device_get_analog_pin" id="8s6*dTCS5X0lBYc[xw1C"><field name="name">AnalogPin.P0</field></block></value><value name="B"><shadow type="math_number" id="=_[A1Mzn`:MyEp5%|E7K"><field name="NUM">1</field></shadow></value></block></value><statement name="DO0"><block type="radio_datagram_send" id="v`qDxkjY{T9@?Cgt!YgK"><value name="value"><shadow type="math_number" id="DTXI#UAMeo{(h/|A_-iy"><field name="NUM">1</field></shadow></value></block></statement></block></statement></block><block type="device_forever" id="jJ]twVeYzuCH(p5$z68g" x="22" y="252"><comment pinned="true" h="80" w="160" relx="-175.95842881548174" rely="29.979004748770762">reverse</comment><statement name="HANDLER"><block type="controls_if" id="y2fP!y`}k=*P.h^A@A-P"><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="$3Ut3tS3+i7NVN/,0@cH"><field name="OP">LT</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="device_get_analog_pin" id="~AiHuna*!*8un{kp)_Pc"><field name="name">AnalogPin.P1</field></block></value><value name="B"><shadow type="math_number" id=")j[Cc.%a*B[3(ri1qhQ?"><field name="NUM">1</field></shadow></value></block></value><statement name="DO0"><block type="radio_datagram_send" id="WzE:h.u)8hQ@kD{o@$wE"><value name="value"><shadow type="math_number" id="rnX;C}9;=siorx3eVilK"><field name="NUM">2</field></shadow></value></block></statement></block></statement></block><block type="device_forever" id="S/%L`LyoHqNH8;!W__r?" x="-49" y="521"><comment pinned="true" h="80" w="160" relx="-175" rely="29">up speed
</comment><statement name="HANDLER"><block type="controls_if" id="%+J%r6lmy~*{zCF-g7g`"><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="q{d:-^5,Ak,{h[KR*h:J"><field name="OP">EQ</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="device_get_analog_pin" id="y}B*]G^PM-|Ew|d+Se.Z"><field name="name">AnalogPin.P2</field></block></value><value name="B"><shadow type="math_number" id="8c^f~5eU#uUIJ+fnmzwR"><field name="NUM">1</field></shadow></value></block></value></block></statement></block><block type="device_forever" id="Gah)U9zGM2xQxb:=yPLE" x="-82" y="788"><comment pinned="true" h="80" w="160" relx="-175" rely="29">down
</comment><statement name="HANDLER"><block type="controls_if" id="}?+#;Ez1uZGBe!h:Jp$O"><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="t]zu2y;$QVS+u@6;%Bz/"><field name="OP">EQ</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="device_get_analog_pin" id="PP=#OW@U:aVo7$a58Y6?"><field name="name">AnalogPin.P10</field></block></value><value name="B"><shadow type="math_number" id="4BN^TIc$?.jc4-dQ,uK5"><field name="NUM">1</field></shadow></value></block></value></block></statement></block><block type="device_gesture_event" id="NAJeDorXcrK{GAl:u2jL" disabled="true" x="1108" y="1086"><field name="NAME">Gesture.Shake</field><statement name="HANDLER"><block type="radio_datagram_send" id="9:#H7,9uB7)Z5F,SPs~?" disabled="true"><value name="value"><shadow type="math_number" id=".~$K`!~}oSG*E^$tQ`.a" disabled="true"><field name="NUM">8</field></shadow></value></block></statement></block></xml>