-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.blocks
1 lines (1 loc) · 2.68 KB
/
main.blocks
1
<xml xmlns="https://developers.google.com/blockly/xml"><block type="function_definition" id=":7.,_QZ@A7z^G}**wld`" x="0" y="0"><mutation name="driveStop" functionid="H,U+dD+JZKZ-=pp*pd,("/><field name="function_name">driveStop</field><statement name="STACK"><block type="device_set_servo_pin" id="y1[yU/+(LESUthF1iDxq"><field name="name">AnalogPin.P1</field><value name="value"><shadow type="math_number_minmax" id="t8MGldZ0cEX3(t%2p{YG"><mutation min="0" max="180" label="Number" precision="0"/><field name="SLIDER">90</field></shadow></value><next><block type="device_set_servo_pin" id="|lepcrWzv/oMwc^LpNc5"><field name="name">AnalogPin.P2</field><value name="value"><shadow type="math_number_minmax" id="^}YM/}nmxVv?l}*;bK:-"><mutation min="0" max="180" label="Number" precision="0"/><field name="SLIDER">90</field></shadow></value></block></next></block></statement></block><block type="typescript_statement" id="$oQ:,ve[NnTt(eNysn[d" disabled="true" editable="false" x="329" y="35"><mutation xmlns="http://www.w3.org/1999/xhtml" line0="function driveForward(ms = 0) {" line1=" pins.servoWritePin(AnalogPin.P1, 0)" line2=" pins.servoWritePin(AnalogPin.P2, 180)" line3=" if(ms > 0) {" line4=" pause(ms)" line5=" driveStop()" line6=" }" line7="}" numlines="8"></mutation><next><block type="typescript_statement" id=")]3)`eX@g-f.`XoY{{R+" disabled="true" editable="false"><mutation xmlns="http://www.w3.org/1999/xhtml" line0="function driveBackward(ms = 0) {" line1=" pins.servoWritePin(AnalogPin.P1, 0)" line2=" pins.servoWritePin(AnalogPin.P2, 180)" line3=" if(ms > 0) {" line4=" pause(ms)" line5=" driveStop()" line6=" }" line7="}" numlines="8"></mutation><next><block type="typescript_statement" id="=!M@ml3`}ftb#$I|;,Yu" disabled="true" editable="false"><mutation xmlns="http://www.w3.org/1999/xhtml" line0="function driveRight(ms = 100) {" line1=" pins.servoWritePin(AnalogPin.P1, 90)" line2=" pins.servoWritePin(AnalogPin.P2, 100)" line3=" if(ms > 0) {" line4=" pause(ms)" line5=" driveStop()" line6=" }" line7="}" numlines="8"></mutation><next><block type="typescript_statement" id="2KH|P_y(*OjZ:h~S92#5" disabled="true" editable="false"><mutation xmlns="http://www.w3.org/1999/xhtml" line0="function driveLeft(ms = 100) {" line1=" pins.servoWritePin(AnalogPin.P1, 90)" line2=" pins.servoWritePin(AnalogPin.P2, 80)" line3=" if(ms > 0) {" line4=" pause(ms)" line5=" driveStop()" line6=" }" line7="}" numlines="8"></mutation></block></next></block></next></block></next></block><block type="device_forever" id="y^YIi|#[wJ2c/Eln)JIz" x="745" y="26"/><block type="pxt-on-start" id="MLv{/xNX*oxfJzPQov:3" x="6" y="290"/></xml>