-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproject.xml
More file actions
4 lines (3 loc) · 3.7 KB
/
project.xml
File metadata and controls
4 lines (3 loc) · 3.7 KB
1
2
3
4
<xml xmlns="https://developers.google.com/blockly/xml"><block type="ir_remote_setup" id="{C$_|?Ca52f~6~:/8J:T" x="-433" y="-419"><field name="PIN">2</field><field name="LOOP">1</field><field name="scanned_new_code">TRUE</field><field name="code">70</field><field name="COPY_SAME">FALSE</field><comment pinned="false" h="200" w="460">This block sets up the ir remote sensor.
Below ---- is where you can set values that the virtual circuit will take in.</comment><data>[{"scanned_new_code":true,"code":70,"loop":2,"blockName":"ir_remote_setup"},{"scanned_new_code":true,"code":70,"loop":3,"blockName":"ir_remote_setup"},{"scanned_new_code":true,"code":70,"loop":1,"blockName":"ir_remote_setup"}]</data></block><block type="arduino_loop" id="AGT.1kI^[*WNB`_AEJ@J" deletable="false" x="-425" y="-178"><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="control_if" id="8ZyvpU?*Qyily0U*`1w!"><comment pinned="false" h="150" w="460">The if statement checks a condition and executes the following block of code if the condition is true.</comment><value name="IF0"><block type="ir_remote_has_code_receive" id="3!4Kzw)6$R;=$Epsg0s6"><comment pinned="false" h="60" w="460">Returns true if the ir sensor has received a message.</comment></block></value><statement name="DO0"><block type="control_if" id="[9i+~jK5I}k_$+9vWeN~"><comment pinned="false" h="150" w="460">The if statement checks a condition and executes the following block of code if the condition is true.</comment><value name="IF0"><block type="logic_compare" id="$4H4ep~nQIvUvy_j%Lk`"><field name="OP">EQ</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="ir_remote_get_code" id="TXeGACj,Ec:D80@+7.n,"><comment pinned="false" h="60" w="460">Get's the message that the ir remote received.</comment></block></value><value name="B"><block type="math_number" id="oz8`s%Ci#SQ:2FI]iy3q"><field name="NUM">70</field></block></value></block></value><statement name="DO0"><block type="led" id="{,wTvdPEezryQm=[v8Fi"><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></block></statement><next><block type="control_if" id="HY{sUYSbnU6ctf=!;z}J"><comment pinned="false" h="150" w="460">The if statement checks a condition and executes the following block of code if the condition is true.</comment><value name="IF0"><block type="logic_compare" id="43/FP#8sjrPya%k9t-ve"><field name="OP">EQ</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="ir_remote_get_code" id="LlPXC5@aEwFGBmQ8w;?z"><comment pinned="false" h="60" w="460">Get's the message that the ir remote received.</comment></block></value><value name="B"><block type="math_number" id="]c^r.JY,a0,+vlb~B-DN"><field name="NUM">69</field></block></value></block></value><statement name="DO0"><block type="led" id="IM5ixegh8`eyupUBGTfu"><field name="COLOR">#ff0000</field><field name="PIN">7</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></block></next></block></statement><next><block type="delay_block" id="XJOP]zH7)*aHopUG+?Pu"><comment pinned="false" h="90" w="460">
Wait for the given/defined seconds.</comment><value name="DELAY"><block type="math_number" id="KlSYL:I_1T,tXq|9M3-:"><field name="NUM">1</field></block></value></block></next></block></statement></block></xml>