-
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) · 4.64 KB
/
project.xml
File metadata and controls
4 lines (3 loc) · 4.64 KB
1
2
3
4
<xml xmlns="https://developers.google.com/blockly/xml"><variables><variable type="String" id="VWo%S_GNxA{XH7a#38jd">sound</variable></variables><block type="message_setup" id="t@EV)i+}oaEqNQWnMD$i" x="-1635" y="-1727"><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":2,"blockName":"message_setup"},{"receiving_message":true,"message":"Hello World :)","loop":3,"blockName":"message_setup"},{"receiving_message":true,"message":"Hello World :)","loop":1,"blockName":"message_setup"}]</data></block><block type="arduino_loop" id="sOT,`O?d(f(AK=:ltWi-" deletable="false" x="-1635" y="-1524"><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="variables_set_string" id="N==BaN+JN4c1TO-z6m62"><field name="VAR" id="VWo%S_GNxA{XH7a#38jd" variabletype="String">sound</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="_zsM|)Mg3p_HA*p5qb`]"><field name="TEXT">moo</field></block></value><next><block type="control_if" id="?wioz/eCWrTR`JPEt#h3"><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="6IIK/cJGag:YsZeBNx72"><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="text_length" id="@7!NbT`(S#Ng]:uwg}4u"><comment pinned="false" h="80" w="460">Gets the number of letters inside a text block. For example, a text block that stores “amy” will return 3.</comment><value name="VALUE"><block type="text" id="YB8UgPQ[@)9SAQpl$aKZ"><field name="TEXT">abc</field></block></value></block></value><value name="B"><block type="math_number" id=".ibu12UwHs6dK:^O,{I2"><field name="NUM">3</field></block></value></block></value><statement name="DO0"><block type="arduino_send_message" id="b]}Wf14K]S:mxP{qF@WD"><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="p+1i@aB~Izf=~%2-BO1D"><field name="TEXT">Works</field></block></value><next><block type="delay_block" id="rSuH,,twAY:e#e]6SOHG"><comment pinned="false" h="90" w="460">
Wait for the given/defined seconds.</comment><value name="DELAY"><block type="math_number" id="(-ItM!10rOiy7ukwfkL7"><field name="NUM">2</field></block></value></block></next></block></statement><next><block type="control_if" id="].3-[Kr35FsbBRHd_D`U"><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="yYG2619@6!Yh~vAazPkT"><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="text_length" id="#3=R}G.|3SyRZDi:0,,I"><comment pinned="false" h="80" w="460">Gets the number of letters inside a text block. For example, a text block that stores “amy” will return 3.</comment><value name="VALUE"><block type="variables_get_string" id="|inqKj~EiB5e_`)@t9y-"><field name="VAR" id="VWo%S_GNxA{XH7a#38jd" variabletype="String">sound</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="-|P9^p3+c/X^uw[aNhhS"><field name="NUM">3</field></block></value></block></value><statement name="DO0"><block type="arduino_send_message" id="3[jBhG5;tC:Q#ZFr[`Z3"><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="s0=cU#hq}8cB{dC563?p"><field name="TEXT">Works</field></block></value><next><block type="delay_block" id="Y`ByiUq(qS*~/,bbW9]R"><comment pinned="false" h="90" w="460">
Wait for the given/defined seconds.</comment><value name="DELAY"><block type="math_number" id="l#F1v/9glm62035:Nx^8"><field name="NUM">2</field></block></value></block></next></block></statement></block></next></block></next></block></statement></block></xml>