-
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) · 7.21 KB
/
project.xml
File metadata and controls
4 lines (3 loc) · 7.21 KB
1
2
3
4
<xml xmlns="https://developers.google.com/blockly/xml"><variables><variable type="String" id=":GQZZ`CUnC%EW!WKUGA2">example</variable></variables><block type="message_setup" id="vOd^`)y9x_IgGBZ)~]9U" x="-75" y="-58"><field name="LOOP">1</field><field name="receiving_message">TRUE</field><field name="message">Hello World :)</field><field name="COPY_SAME">FALSE</field><comment pinned="false" h="100" w="460">This block allows you to send messages from the Arduino and the Arduino to send your computer messages.</comment><data>[{"receiving_message":true,"message":"Hello World :)","loop":1,"blockName":"message_setup"}]</data></block><block type="arduino_loop" id="}:`snsqo[EG,Vl?mN]1w" deletable="false" x="-113" y="200"><field name="LOOP_TIMES">3</field><comment pinned="false" h="170" w="460">The loop block runs on repeat until your Arduino loses power. It runs right after your setup block if you have one.
If you are using the simulator, you can control how many times it repeats.</comment><statement name="loop"><block type="variables_set_string" id="EuC`I:u;H2JjVSvz)y^S"><field name="VAR" id=":GQZZ`CUnC%EW!WKUGA2" variabletype="String">example</field><comment pinned="false" h="90" w="460">This block sets the value the variable is storing. This variable will store text only.</comment><value name="VALUE"><block type="text" id="5O@C|1p8NrlYK~!K[1,5"><field name="TEXT">3</field></block></value><next><block type="controls_ifelse" id="nHNSkHN^^7uv~A]]3[#{"><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="+DL@jr-Yqy-UW4i7o@zR"><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="string_to_number" id="`q=;kSrd~cbH,T!x%[G:"><comment pinned="false" h="60" w="460">This block will take text data and turn it into number.</comment><value name="VALUE"><block type="text" id="7[?LB?0Er;kl:hVg9gq,"><field name="TEXT">5.35</field></block></value></block></value><value name="B"><block type="math_number" id="e3JqoHjaE:sE+},1XlP)"><field name="NUM">5.35</field></block></value></block></value><statement name="DO0"><block type="arduino_send_message" id="ZE]ti8pLG?tkO7zr|fVI"><comment pinned="false" h="80" w="460">This block will send a message from the Arduino to the computer.</comment><value name="MESSAGE"><block type="text" id="CRpkOz(ae1Izf(2VhgBV"><field name="TEXT">Works</field></block></value></block></statement><statement name="ELSE"><block type="arduino_send_message" id="]j~jOlFPg8jXt4D-7*c*"><comment pinned="false" h="80" w="460">This block will send a message from the Arduino to the computer.</comment><value name="MESSAGE"><block type="text" id="J%fN)wU{l9xNGk@WU_V5"><field name="TEXT">No Working</field></block></value></block></statement><next><block type="controls_ifelse" id="#kS9dqQAHuoa7D~D8iv9"><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="Hjb]UDc!3i.GlW+FEFA;"><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="string_to_number" id="99Z.dHnbx5(Z_~^bV|4X"><comment pinned="false" h="60" w="460">This block will take text data and turn it into number.</comment><value name="VALUE"><block type="variables_get_string" id="t!76)uM*nC,mYI`+FU%L"><field name="VAR" id=":GQZZ`CUnC%EW!WKUGA2" variabletype="String">example</field><comment pinned="false" h="80" w="460">This block gets the value that the variable is storing. This variable store a text.</comment></block></value></block></value><value name="B"><block type="math_number" id="62+_30oEH]kpmy@Qz1T7"><field name="NUM">3</field></block></value></block></value><statement name="DO0"><block type="arduino_send_message" id="i7.wY/*XR{eizIK(XK+s"><comment pinned="false" h="80" w="460">This block will send a message from the Arduino to the computer.</comment><value name="MESSAGE"><block type="text" id="|@vt9p[E]_I`k_5HzU3j"><field name="TEXT">Works</field></block></value></block></statement><statement name="ELSE"><block type="arduino_send_message" id="l_:,#(g;J=#W@Rw=Xd@t"><comment pinned="false" h="80" w="460">This block will send a message from the Arduino to the computer.</comment><value name="MESSAGE"><block type="text" id="lh/9.P0,k`wh,8,N!+#M"><field name="TEXT">No Working</field></block></value></block></statement><next><block type="variables_set_string" id="C?+u2J=VUnYrgtzeqlh3"><field name="VAR" id=":GQZZ`CUnC%EW!WKUGA2" variabletype="String">example</field><comment pinned="false" h="90" w="460">This block sets the value the variable is storing. This variable will store text only.</comment><value name="VALUE"><block type="text" id="cp$eh+a-~vI$jQy!/7jv"><field name="TEXT">3.5</field></block></value><next><block type="controls_ifelse" id="F6eFuXtE7I6|3mefgAEg"><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="9688t4ZX;}U-dG7VOH[U"><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="string_to_number" id="Xv]AC5i4F1[Sr!z`RLqU"><comment pinned="false" h="60" w="460">This block will take text data and turn it into number.</comment><value name="VALUE"><block type="variables_get_string" id="4?]#/:{lNMS_dGrxJl0s"><field name="VAR" id=":GQZZ`CUnC%EW!WKUGA2" variabletype="String">example</field><comment pinned="false" h="80" w="460">This block gets the value that the variable is storing. This variable store a text.</comment></block></value></block></value><value name="B"><block type="math_number" id="ldF8*rNf|lEMx?y;#I[Z"><field name="NUM">3.5</field></block></value></block></value><statement name="DO0"><block type="arduino_send_message" id="]oP+c}5e9ewNOaMzQrn("><comment pinned="false" h="80" w="460">This block will send a message from the Arduino to the computer.</comment><value name="MESSAGE"><block type="text" id="#X{P0SEsKIH/pj]~a#@2"><field name="TEXT">Works</field></block></value></block></statement><statement name="ELSE"><block type="arduino_send_message" id="5SI$$X]ZAN;Gky/)X7yx"><comment pinned="false" h="80" w="460">This block will send a message from the Arduino to the computer.</comment><value name="MESSAGE"><block type="text" id="~BQ-XM^a-oE*RO2RGCh3"><field name="TEXT">No Working</field></block></value></block></statement><next><block type="delay_block" id="Q0,n)yBt5k(O3LPe:sb}"><comment pinned="false" h="90" w="460">
Wait for the given/defined seconds.</comment><value name="DELAY"><block type="math_number" id="757!iMPqVh}g`*7rb/B$"><field name="NUM">2</field></block></value></block></next></block></next></block></next></block></next></block></next></block></statement></block></xml>