-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproject.xml
More file actions
3 lines (2 loc) · 3.67 KB
/
project.xml
File metadata and controls
3 lines (2 loc) · 3.67 KB
1
2
3
<xml xmlns="https://developers.google.com/blockly/xml"><block type="thermistor_setup" id="Z;3Ko.a}E`q]giqQi7wj" x="-751" y="-1371"><field name="PIN">A0</field><field name="LOOP">1</field><field name="TEMP">23</field><field name="COPY_SAME">FALSE</field><comment pinned="false" h="180" w="460">This block will setup the thermistor which is used to measure temperature.
Below ---- is where you can set values that the virtual circuit will take in.</comment><data>[{"temp":23,"loop":2,"blockName":"thermistor_setup"},{"temp":23,"loop":3,"blockName":"thermistor_setup"},{"temp":23,"loop":1,"blockName":"thermistor_setup"}]</data></block><block type="arduino_loop" id="2Hs.yA=FsGbrPWdKv#a~" deletable="false" x="-757" y="-1105"><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="%O:4iiI9en(HM*GCd/ob"><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=",B0Z:~H;se9kfPQ0(Dyg"><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="thermistor_read" id=",s#6H[;3/Wb}$DS/R[W2"><field name="UNIT">C</field><comment pinned="false" h="60" w="460">Return the temperature in Celcius.</comment></block></value><value name="B"><block type="math_number" id="bW]/`jh~bFo|qZGhc`{l"><field name="NUM">50</field></block></value></block></value><statement name="DO0"><block type="led" id="IX|^04oTe0~#u@A#?1G_"><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="zWiBMiNdb,9tbQ+!nf01"><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><next><block type="controls_ifelse" id=")?:3Kh~47xInKqXg%e}s"><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="E!$eV$xrzv04?n-COc~m"><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="thermistor_read" id=",kof:!+$_$ed+a7/kHg("><field name="UNIT">F</field><comment pinned="false" h="60" w="460">Return the temperature in Celcius.</comment></block></value><value name="B"><block type="math_number" id="g_?UjWDZ6uCl=57~YS`3"><field name="NUM">60</field></block></value></block></value><statement name="DO0"><block type="led" id="[*vgJR]A1_OVfvE8:W5Q"><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="WYIA61]luoOZ2iVXhP7h"><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></next></block></statement></block></xml>