-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproject.xml
More file actions
5 lines (4 loc) · 5.55 KB
/
project.xml
File metadata and controls
5 lines (4 loc) · 5.55 KB
1
2
3
4
5
<xml xmlns="https://developers.google.com/blockly/xml"><variables><variable type="Number" id="KzRYV8*SQQfh8Lx6xj[w">i</variable></variables><block type="arduino_setup" id="[H(If5{Ngva-rv2]I$FG" x="48" y="22"><comment pinned="false" h="150" w="460">The setup block runs after all library blocks. It only runs once.
Use a setup block initialize variables in code.</comment><statement name="setup"><block type="rotate_servo" id="_2r-7)/oN~Ump{S%Z}ga"><field name="PIN">8</field><comment pinned="false" h="180" w="460">Rotate servo position for defined degrees.</comment><value name="DEGREE"><block type="math_number" id=";/R*Pw9jY0%nSs9rjur!"><field name="NUM">0</field></block></value><next><block type="rotate_servo" id="VYo3L7E{VXl!VUqDS@$N"><field name="PIN">7</field><comment pinned="false" h="180" w="460">Rotate servo position for defined degrees.</comment><value name="DEGREE"><block type="math_number" id="8L`US_6?.54P5=l@MgWE"><field name="NUM">180</field></block></value></block></next></block></statement></block><block type="arduino_loop" id="K8C0}bg_.BIrm6nO67:Y" deletable="false" x="45" y="245"><field name="LOOP_TIMES">3</field><comment pinned="false" h="170" w="460">The void loop function runs over and over again forever</comment><statement name="loop"><block type="controls_for" id="TSztQvbaz`qZ$l5!Z6n?"><field name="VAR" id="KzRYV8*SQQfh8Lx6xj[w" variabletype="Number">i</field><field name="BY">5</field><comment pinned="false" h="140" w="460">A for "count with block" creates a loop where it will stop looping once the variable has reached the "to" point. The best way to learn this block is to drag it out and play around with its values in the simulator.</comment><value name="FROM"><block type="math_number" id="*v47n_/Qx#3!?Vc)R*BM"><field name="NUM">0</field></block></value><value name="TO"><block type="math_number" id="}N6/@)Ot[Zv0-N;!A58g"><field name="NUM">90</field></block></value><statement name="DO"><block type="rotate_servo" id="eGr;)%3=C91{M3x(8!hh"><field name="PIN">8</field><comment pinned="false" h="180" w="460">Rotate servo position for defined degrees.</comment><value name="DEGREE"><block type="variables_get_number" id="@K2%NoT.Lqe6?%PN+CR0"><field name="VAR" id="KzRYV8*SQQfh8Lx6xj[w" variabletype="Number">i</field><comment pinned="false" h="80" w="460">This block gets the value that the variable is storing. This variable store a number.</comment></block></value><next><block type="rotate_servo" id="kD{25BMm*H.Fz{rWnAb:"><field name="PIN">7</field><comment pinned="false" h="180" w="460">Rotate servo position for defined degrees.</comment><value name="DEGREE"><block type="math_arithmetic" id="=.7wq8Q9M)7GV|}|:,kh"><field name="OP">MINUS</field><value name="A"><block type="math_number" id="xPpLcXH3pwK{gy^%)3{p"><field name="NUM">180</field></block></value><value name="B"><block type="variables_get_number" id="Iz6Xg1$W7O?|`(O0KX?k"><field name="VAR" id="KzRYV8*SQQfh8Lx6xj[w" variabletype="Number">i</field><comment pinned="false" h="80" w="460">This block gets the value that the variable is storing. This variable store a number.</comment></block></value></block></value><next><block type="delay_block" id="|`S7vFfG#Y~WBgeV?(?T"><comment pinned="false" h="90" w="460">
Wait for the given/defined seconds.</comment><value name="DELAY"><block type="math_number" id="%*^C,1jVC3}@l?8^=7Re"><field name="NUM">0.05</field></block></value></block></next></block></next></block></statement><next><block type="controls_for" id="/Wv+qjX/q(iq@;.Sg-|^"><field name="VAR" id="KzRYV8*SQQfh8Lx6xj[w" variabletype="Number">i</field><field name="BY">5</field><comment pinned="false" h="140" w="460">A for "count with block" creates a loop where it will stop looping once the variable has reached the "to" point. The best way to learn this block is to drag it out and play around with its values in the simulator.</comment><value name="FROM"><block type="math_number" id=".4b1GNHAES|B$Dv1hC.m"><field name="NUM">90</field></block></value><value name="TO"><block type="math_number" id="1lyO;hxPi^Tk5p+Kk`nW"><field name="NUM">0</field></block></value><statement name="DO"><block type="rotate_servo" id="}NQh7tuPN{##D|ovmeb6"><field name="PIN">8</field><comment pinned="false" h="180" w="460">Rotate servo position for defined degrees.</comment><value name="DEGREE"><block type="variables_get_number" id="zeWlq!hC5Le~LgAw_2Wa"><field name="VAR" id="KzRYV8*SQQfh8Lx6xj[w" variabletype="Number">i</field><comment pinned="false" h="80" w="460">This block gets the value that the variable is storing. This variable store a number.</comment></block></value><next><block type="rotate_servo" id="(d5Yyu@d})k3^0)h:%67"><field name="PIN">7</field><comment pinned="false" h="180" w="460">Rotate servo position for defined degrees.</comment><value name="DEGREE"><block type="math_arithmetic" id="W51,}2qWm{[`58r][~*i"><field name="OP">MINUS</field><value name="A"><block type="math_number" id="zD(SKi[:hUm,{,*B~%_L"><field name="NUM">180</field></block></value><value name="B"><block type="variables_get_number" id="di+`W1h#/^YZmh+$aw[k"><field name="VAR" id="KzRYV8*SQQfh8Lx6xj[w" variabletype="Number">i</field><comment pinned="false" h="80" w="460">This block gets the value that the variable is storing. This variable store a number.</comment></block></value></block></value><next><block type="delay_block" id=".qR{yR%}eDQaG[JzLB%j"><comment pinned="false" h="90" w="460">
Wait for the given/defined seconds.</comment><value name="DELAY"><block type="math_number" id="o0@NgT!VEF!qKDrC2//V"><field name="NUM">0.05</field></block></value></block></next></block></next></block></statement></block></next></block></statement></block></xml>