-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproject.xml
More file actions
7 lines (4 loc) · 2.44 KB
/
project.xml
File metadata and controls
7 lines (4 loc) · 2.44 KB
1
2
3
4
5
6
7
<xml xmlns="https://developers.google.com/blockly/xml"><block type="analog_read_setup" id="8CY?!%~SJMKZ`T:?jAjS" x="-207" y="-262"><field name="PIN">A0</field><field name="TYPE">POTENTIOMETER</field><field name="LOOP">1</field><field name="state">512</field><field name="COPY_SAME">FALSE</field><comment pinned="false" h="200" w="501">This block (analog read setup) tells the Arduino which pin is sense electricity.
A pin is a piece of metal connected to the Arduino used to control or sense electricity.
Below ---- is where you can set values that the virtual circuit will take in.</comment><data>[{"state":512,"loop":1,"blockName":"analog_read_setup"}]</data></block><block type="arduino_loop" id="C[_Y{PzPW?Np`w`AsmnR" deletable="false" x="-213" y="-18"><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_ifelse" id="K/:D+KOaWP.aJwO7~,CC"><comment pinned="false" h="150" w="460"> It checks a condition using the if statement, executes a block of code if the condition is true, and otherwise executes the code inside the block when the condition is false.</comment><value name="IF0"><block type="logic_compare" id=":7%zC?mmW*7I^/[o-kqQ"><field name="OP">GT</field><comment pinned="false" h="140" w="527">Compares what is in the left and right and returns true or false.</comment><value name="A"><block type="analog_read" id="NY(2h2IZf%RfPY{~+_V1"><field name="PIN">A0</field><comment pinned="false" h="140" w="460">This block (analog read) senses the amount of electricity flowing through a pin.
A pin is a piece of metal connected to the Arduino used to control or sense electricity.</comment></block></value><value name="B"><block type="math_number" id="ju8G0%zWh3e5dL=~~s~4"><field name="NUM">100</field></block></value></block></value><statement name="DO0"><block type="led" id="6F4rCt%3oM-#w67[z5b,"><field name="COLOR">#ff0000</field><field name="PIN">13</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></block></statement><statement name="ELSE"><block type="led" id="hF16}qv2[0qOx$;9|n7q"><field name="COLOR">#ff0000</field><field name="PIN">13</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></block></statement></block></statement></block></xml>