-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproject.xml
More file actions
16 lines (12 loc) · 5.07 KB
/
project.xml
File metadata and controls
16 lines (12 loc) · 5.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<xml xmlns="https://developers.google.com/blockly/xml"><variables><variable type="Number" id="$*iL?}7sf.zs,EKQ%O_%">i</variable></variables><block type="arduino_loop" id="%6ifx=uc(q[=:jY#C9]z" deletable="false" x="-218" y="-44"><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="digital_write" id="XS#?[DG(!B_~$IN7;eoU"><field name="STATE">ON</field><field name="PIN">7</field><comment pinned="false" h="130" w="460">This block (digital write) turns on and off a pin.
A pin is a piece of metal connected to the Arduino used to control or sense electricity.</comment><next><block type="delay_block" id="=K4}4B3{kAiq2g|MzlyT"><comment pinned="false" h="90" w="460">
Wait for the given/defined seconds.</comment><value name="DELAY"><block type="math_number" id="CBg.L(2I%uqY^Q75Xn+V"><field name="NUM">1</field></block></value><next><block type="digital_write" id="WCV`Dr{;z8p*j]4x._U%"><field name="STATE">OFF</field><field name="PIN">7</field><comment pinned="false" h="130" w="460">This block (digital write) turns on and off a pin.
A pin is a piece of metal connected to the Arduino used to control or sense electricity.</comment><next><block type="delay_block" id="mmc_xZ_H;D|onE7TcrXA"><comment pinned="false" h="90" w="460">
Wait for the given/defined seconds.</comment><value name="DELAY"><block type="math_number" id="e3](:J/vQo$-pKmpz^=R"><field name="NUM">1</field></block></value><next><block type="controls_for" id="axbECf7+n!:wa?+jHv{S"><field name="VAR" id="$*iL?}7sf.zs,EKQ%O_%" 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="0_=KNf17]$gALArF$:YR"><field name="NUM">0</field></block></value><value name="TO"><block type="math_number" id="nyZ7I6LL33h=a1g2@-|~"><field name="NUM">200</field></block></value><statement name="DO"><block type="analog_write" id=".}dc7arx#M(([C$w{2DD"><field name="PIN">11</field><comment pinned="false" h="200" w="400">This block (analog write) sends a number from 0 to 255 to a pin.
255 means that pins is completely on while 0 means the pin is off.
A pin is a piece of metal connected to the Arduino used to control or sense electricity.</comment><value name="WRITE_VALUE"><block type="variables_get_number" id="-VGc^PB1r6Ef{H=@IsPw"><field name="VAR" id="$*iL?}7sf.zs,EKQ%O_%" 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="+zyte(i,{?~3SZ,}?fH`"><comment pinned="false" h="90" w="460">
Wait for the given/defined seconds.</comment><value name="DELAY"><block type="math_number" id="=k,jmR2dX%3;(PKqJ-TK"><field name="NUM">0.05</field></block></value></block></next></block></statement><next><block type="controls_for" id="Z=1W:c^SaD{Agc/!WT7*"><field name="VAR" id="$*iL?}7sf.zs,EKQ%O_%" 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="n[~^F4_t0fIOcc]AE:U9"><field name="NUM">200</field></block></value><value name="TO"><block type="math_number" id="RTc%Tjb_P:6POllwa+Ql"><field name="NUM">0</field></block></value><statement name="DO"><block type="analog_write" id="x%qj0Q39g0_JkX7t?f0?"><field name="PIN">11</field><comment pinned="false" h="200" w="400">This block (analog write) sends a number from 0 to 255 to a pin.
255 means that pins is completely on while 0 means the pin is off.
A pin is a piece of metal connected to the Arduino used to control or sense electricity.</comment><value name="WRITE_VALUE"><block type="variables_get_number" id="FO_MZxtZqh`Sw~NK*msA"><field name="VAR" id="$*iL?}7sf.zs,EKQ%O_%" 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="B4RBNyx7`,w],D/qlH72"><comment pinned="false" h="90" w="460">
Wait for the given/defined seconds.</comment><value name="DELAY"><block type="math_number" id="jKc*p=2EP{jt+ml|b0oO"><field name="NUM">0.05</field></block></value></block></next></block></statement><next><block type="delay_block" id="F78lEJ8,]ev2R%yCVs+q"><comment pinned="false" h="90" w="460">
Wait for the given/defined seconds.</comment><value name="DELAY"><block type="math_number" id="@ApRa;qtN,sL$ga!}ZKA"><field name="NUM">5</field></block></value></block></next></block></next></block></next></block></next></block></next></block></next></block></statement></block></xml>