-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproject.xml
More file actions
10 lines (8 loc) · 5.04 KB
/
project.xml
File metadata and controls
10 lines (8 loc) · 5.04 KB
1
2
3
4
5
6
7
8
9
10
<xml xmlns="https://developers.google.com/blockly/xml"><variables><variable type="Number" id="eH/R-al%CdYv)g@^JH0)">i</variable></variables><block type="arduino_loop" id="+l+;y8F8$@M$Kvrwe~!!" deletable="false" x="-207" y="134"><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="led" id="H{aw8RGPJRoxrN96Y.hr"><field name="COLOR">#ff0000</field><field name="PIN">8</field><field name="STATE">ON</field><comment pinned="false" h="145" w="460">Set defined pin to HIGH or LOW to turn on or off the LED light.</comment><next><block type="delay_block" id="v=Fglv`OJp=lizuiJMe$"><comment pinned="false" h="90" w="460">
Wait for the given/defined seconds.</comment><value name="DELAY"><block type="math_number" id="KwQ!mAIEh]*qKuN_NYaN"><field name="NUM">1</field></block></value><next><block type="led" id="qD%A@^hPy*#G#TOVmBXk"><field name="COLOR">#ff0000</field><field name="PIN">8</field><field name="STATE">OFF</field><comment pinned="false" h="145" w="460">Set defined pin to HIGH or LOW to turn on or off the LED light.</comment><next><block type="delay_block" id="0_QWAZb4JItB??!4*y[:"><comment pinned="false" h="90" w="460">
Wait for the given/defined seconds.</comment><value name="DELAY"><block type="math_number" id="{#H_,MPiSmRkcw!wMx.B"><field name="NUM">1</field></block></value><next><block type="controls_for" id="%33TQ^D/(x6A7:;/)!x8"><field name="VAR" id="eH/R-al%CdYv)g@^JH0)" 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="2MQfi(}~t.gNtlgyY*CT"><field name="NUM">0</field></block></value><value name="TO"><block type="math_number" id="q?j76Ykd)%ZB#!HFaZ-$"><field name="NUM">100</field></block></value><statement name="DO"><block type="led_fade" id="yGCYW6Y=L$xh]BU89khc"><field name="COLOR">#008000</field><field name="PIN">9</field><comment pinned="false" h="175" w="460">This block controls the amount of electricity going into the led attached to the pin in the dropdown box. It has a fade effect on the led light.
A pin is a piece of metal connected to the Arduino used to control or sense electricity.</comment><value name="FADE"><block type="variables_get_number" id=")oh|0,O/CUoOF-X5@}45"><field name="VAR" id="eH/R-al%CdYv)g@^JH0)" 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="delay_block" id="_*}..8D:ym2ovocb1Y{k"><comment pinned="false" h="90" w="460">
Wait for the given/defined seconds.</comment><value name="DELAY"><block type="math_number" id="py~9l}X=9(+Q[I~T2*`P"><field name="NUM">0.1</field></block></value></block></next></block></statement><next><block type="controls_for" id="6tlT(VF.APGj(3dEyeJk"><field name="VAR" id="eH/R-al%CdYv)g@^JH0)" 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="o7fiXrM#2-K(1=FkU4JF"><field name="NUM">100</field></block></value><value name="TO"><block type="math_number" id="Z!vj$nMCNQ:mraO9|MTs"><field name="NUM">0</field></block></value><statement name="DO"><block type="led_fade" id="{Y~Le,IDEg+Z@f)[Xd-X"><field name="COLOR">#008000</field><field name="PIN">9</field><comment pinned="false" h="175" w="460">This block controls the amount of electricity going into the led attached to the pin in the dropdown box. It has a fade effect on the led light.
A pin is a piece of metal connected to the Arduino used to control or sense electricity.</comment><value name="FADE"><block type="variables_get_number" id="hgZ3d]YUI{-Vb;0xF@9+"><field name="VAR" id="eH/R-al%CdYv)g@^JH0)" 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="delay_block" id="p#(wEbXNk7#zMpgn3JO`"><comment pinned="false" h="90" w="460">
Wait for the given/defined seconds.</comment><value name="DELAY"><block type="math_number" id="B-m$vg#=e-LoLnx`pubQ"><field name="NUM">0.1</field></block></value></block></next></block></statement><next><block type="delay_block" id="Db#my_FDTDH]60#mE?~g"><comment pinned="false" h="90" w="460">
Wait for the given/defined seconds.</comment><value name="DELAY"><block type="math_number" id="k/oZu!Fb;lpL3:M]woZ1"><field name="NUM">1</field></block></value></block></next></block></next></block></next></block></next></block></next></block></next></block></statement></block></xml>