-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproject.xml
More file actions
17 lines (10 loc) · 15.3 KB
/
project.xml
File metadata and controls
17 lines (10 loc) · 15.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<xml xmlns="https://developers.google.com/blockly/xml"><variables><variable type="Number" id="N7l/#d9~LyB;BXU?MZDs">number</variable><variable type="Number" id=")M%iw{vMu-tyXV:Q{N!!">i</variable><variable type="Number" id="{Y05iJbeC9,X%M5A=cu$">j</variable></variables><block type="message_setup" id="K{wV@REp%sKN2ZaNwUn|" x="-500" y="-186"><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="-406" y="49"><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_number" id="bf}q(fq*(=oG@9/i?VU0"><field name="VAR" id="N7l/#d9~LyB;BXU?MZDs" variabletype="Number">number</field><comment pinned="false" h="90" w="460">This block sets the value the variable is storing. This variable will store number only.</comment><value name="VALUE"><block type="math_number" id="l-hadR!6tAAz]R-gmbN9"><field name="NUM">33</field></block></value><next><block type="controls_for" id="fH}028=^!rE!+E%9E!AV"><field name="VAR" id=")M%iw{vMu-tyXV:Q{N!!" variabletype="Number">i</field><field name="BY">1</field><comment pinned="false" h="140" w="460">A for "count with block" creates a loop where it will stop looping once the variable has reached the "to" point. The best way to learn this block is to drag it out and play around with its values in the simulator.</comment><value name="FROM"><block type="math_number" id="VFHjze*kp0c]k|z~[gK("><field name="NUM">1</field></block></value><value name="TO"><block type="math_number" id="hXn44XG$L`D;uNt;V%/n"><field name="NUM">10</field></block></value><statement name="DO"><block type="controls_for" id="t^k(rUrxzRCrSxgmK4V5"><field name="VAR" id="{Y05iJbeC9,X%M5A=cu$" variabletype="Number">j</field><field name="BY">1</field><comment pinned="false" h="140" w="460">A for "count with block" creates a loop where it will stop looping once the variable has reached the "to" point. The best way to learn this block is to drag it out and play around with its values in the simulator.</comment><value name="FROM"><block type="math_number" id="~J{9SN{K@Zm.6Ssgm_3]"><field name="NUM">1</field></block></value><value name="TO"><block type="math_number" id="g)`vCT7mTKA$dMH:7lj%"><field name="NUM">10</field></block></value><statement name="DO"><block type="variables_set_number" id="Z2G%$l%ISR;@mO`2T=2C"><field name="VAR" id="N7l/#d9~LyB;BXU?MZDs" variabletype="Number">number</field><comment pinned="false" h="90" w="460">This block sets the value the variable is storing. This variable will store number only.</comment><value name="VALUE"><block type="math_arithmetic" id="O.l.gmhwC8$?2;_~v9QG"><field name="OP">ADD</field><value name="A"><block type="math_number" id="IC)SGcsi1RmRc;/2HxDb"><field name="NUM">1</field></block></value><value name="B"><block type="math_number" id="m:[h$9QxjlECkVmudzg]"><field name="NUM">1</field></block></value></block></value><next><block type="arduino_send_message" id="+zS7(cf4k54Gjj2^.mTl"><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="number_to_string" id="mOfBrRK?~ha4Vj%g/6N7"><field name="PRECISION">2</field><comment pinned="false" h="190" w="460">This block turns a number into a text block. The precision controls how many decimal places of the number will be turned into text.
Let’s say you have 5.23234, and you specify 2 for the precision. The text block that this block would return “5.23”.</comment><value name="NUMBER"><block type="variables_get_number" id="m/rz6pgze[YU^MnTvT5@"><field name="VAR" id="N7l/#d9~LyB;BXU?MZDs" variabletype="Number">number</field><comment pinned="false" h="80" w="460">This block gets the value that the variable is storing. This variable store a number.</comment></block></value></block></value><next><block type="variables_set_number" id="H{pYNK(VkrY]b1YHz9V,"><field name="VAR" id="N7l/#d9~LyB;BXU?MZDs" variabletype="Number">number</field><comment pinned="false" h="90" w="460">This block sets the value the variable is storing. This variable will store number only.</comment><value name="VALUE"><block type="math_arithmetic" id="6yLACdD%j9C=^,)MC|.Q"><field name="OP">ADD</field><value name="A"><block type="variables_get_number" id="@~{H7n_t^z=TLx={l(np"><field name="VAR" id=")M%iw{vMu-tyXV:Q{N!!" variabletype="Number">i</field><comment pinned="false" h="80" w="460">This block gets the value that the variable is storing. This variable store a number.</comment></block></value><value name="B"><block type="variables_get_number" id="6Oj9XSCr^%DQ2O,[nn8k"><field name="VAR" id="{Y05iJbeC9,X%M5A=cu$" variabletype="Number">j</field><comment pinned="false" h="80" w="460">This block gets the value that the variable is storing. This variable store a number.</comment></block></value></block></value><next><block type="arduino_send_message" id="#K^Edt`o8~eLf=(%[rvg"><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="number_to_string" id=".WhyE{FXst0b+H%$M2)f"><field name="PRECISION">2</field><comment pinned="false" h="190" w="460">This block turns a number into a text block. The precision controls how many decimal places of the number will be turned into text.
Let’s say you have 5.23234, and you specify 2 for the precision. The text block that this block would return “5.23”.</comment><value name="NUMBER"><block type="variables_get_number" id="B[_W7U]u,sV8,g8lN%!/"><field name="VAR" id="N7l/#d9~LyB;BXU?MZDs" variabletype="Number">number</field><comment pinned="false" h="80" w="460">This block gets the value that the variable is storing. This variable store a number.</comment></block></value></block></value><next><block type="variables_set_number" id="dra#)go~4:BeuP`4^3qg"><field name="VAR" id="N7l/#d9~LyB;BXU?MZDs" variabletype="Number">number</field><comment pinned="false" h="90" w="460">This block sets the value the variable is storing. This variable will store number only.</comment><value name="VALUE"><block type="math_arithmetic" id="6o:{zDQuM~`1J^~vpmZV"><field name="OP">MINUS</field><value name="A"><block type="variables_get_number" id=")[lnfy)N_h-KrZ{,NGgu"><field name="VAR" id=")M%iw{vMu-tyXV:Q{N!!" variabletype="Number">i</field><comment pinned="false" h="80" w="460">This block gets the value that the variable is storing. This variable store a number.</comment></block></value><value name="B"><block type="variables_get_number" id="{?hm$*GUtdpDr~!hrrRF"><field name="VAR" id="{Y05iJbeC9,X%M5A=cu$" variabletype="Number">j</field><comment pinned="false" h="80" w="460">This block gets the value that the variable is storing. This variable store a number.</comment></block></value></block></value><next><block type="arduino_send_message" id="Ky5W[,`IQ}%AOevc{_~-"><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="number_to_string" id="=`%Jh=kL|UX9t^~|rjCr"><field name="PRECISION">2</field><comment pinned="false" h="190" w="460">This block turns a number into a text block. The precision controls how many decimal places of the number will be turned into text.
Let’s say you have 5.23234, and you specify 2 for the precision. The text block that this block would return “5.23”.</comment><value name="NUMBER"><block type="variables_get_number" id="NV8!uzv;62c1R%J^|^|J"><field name="VAR" id="N7l/#d9~LyB;BXU?MZDs" variabletype="Number">number</field><comment pinned="false" h="80" w="460">This block gets the value that the variable is storing. This variable store a number.</comment></block></value></block></value><next><block type="variables_set_number" id="(CK5{+n7~s,j0Fu;8FmE"><field name="VAR" id="N7l/#d9~LyB;BXU?MZDs" variabletype="Number">number</field><comment pinned="false" h="90" w="460">This block sets the value the variable is storing. This variable will store number only.</comment><value name="VALUE"><block type="math_arithmetic" id=";?=mq~H,~qQ6QLT_-7v`"><field name="OP">MULTIPLY</field><value name="A"><block type="variables_get_number" id="7VjLwoF|9RMO,_2M@-DQ"><field name="VAR" id=")M%iw{vMu-tyXV:Q{N!!" variabletype="Number">i</field><comment pinned="false" h="80" w="460">This block gets the value that the variable is storing. This variable store a number.</comment></block></value><value name="B"><block type="variables_get_number" id="?/*oKCl/b{%UK}@SIo*E"><field name="VAR" id="{Y05iJbeC9,X%M5A=cu$" variabletype="Number">j</field><comment pinned="false" h="80" w="460">This block gets the value that the variable is storing. This variable store a number.</comment></block></value></block></value><next><block type="arduino_send_message" id="16(6!Ovr{#Re-zLlkF^~"><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="number_to_string" id="UmK(Har#{HjuR^22dMP^"><field name="PRECISION">2</field><comment pinned="false" h="190" w="460">This block turns a number into a text block. The precision controls how many decimal places of the number will be turned into text.
Let’s say you have 5.23234, and you specify 2 for the precision. The text block that this block would return “5.23”.</comment><value name="NUMBER"><block type="variables_get_number" id="J,U{,%+=[.kz_CRfX#{6"><field name="VAR" id="N7l/#d9~LyB;BXU?MZDs" variabletype="Number">number</field><comment pinned="false" h="80" w="460">This block gets the value that the variable is storing. This variable store a number.</comment></block></value></block></value><next><block type="variables_set_number" id="$K-WOTRcKNun!lX-,b*y"><field name="VAR" id="N7l/#d9~LyB;BXU?MZDs" variabletype="Number">number</field><comment pinned="false" h="90" w="460">This block sets the value the variable is storing. This variable will store number only.</comment><value name="VALUE"><block type="math_arithmetic" id="i#kaWA_`d]}L*I)ban2@"><field name="OP">DIVIDE</field><value name="A"><block type="variables_get_number" id="{Q`;W#)VfZ%!j~-uT?ts"><field name="VAR" id=")M%iw{vMu-tyXV:Q{N!!" variabletype="Number">i</field><comment pinned="false" h="80" w="460">This block gets the value that the variable is storing. This variable store a number.</comment></block></value><value name="B"><block type="variables_get_number" id="#a`)w#LxEeQ/6_Kj;EfD"><field name="VAR" id="{Y05iJbeC9,X%M5A=cu$" variabletype="Number">j</field><comment pinned="false" h="80" w="460">This block gets the value that the variable is storing. This variable store a number.</comment></block></value></block></value><next><block type="arduino_send_message" id="kreFUyIq0a.QE=-l[(ri"><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="number_to_string" id="^dGzX,e@!%7z6}1:2e?n"><field name="PRECISION">2</field><comment pinned="false" h="190" w="460">This block turns a number into a text block. The precision controls how many decimal places of the number will be turned into text.
Let’s say you have 5.23234, and you specify 2 for the precision. The text block that this block would return “5.23”.</comment><value name="NUMBER"><block type="variables_get_number" id="#A75ZQvkdkLad6e*(6/4"><field name="VAR" id="N7l/#d9~LyB;BXU?MZDs" variabletype="Number">number</field><comment pinned="false" h="80" w="460">This block gets the value that the variable is storing. This variable store a number.</comment></block></value></block></value><next><block type="variables_set_number" id="]7qGOey#cuUoQ3oX=lXF"><field name="VAR" id="N7l/#d9~LyB;BXU?MZDs" variabletype="Number">number</field><comment pinned="false" h="90" w="460">This block sets the value the variable is storing. This variable will store number only.</comment><value name="VALUE"><block type="math_arithmetic" id="d9h$G|1Ce9xdG+,|sc_B"><field name="OP">POWER</field><value name="A"><block type="variables_get_number" id="#^Ok1|6VCgoRR9tR[.S+"><field name="VAR" id=")M%iw{vMu-tyXV:Q{N!!" variabletype="Number">i</field><comment pinned="false" h="80" w="460">This block gets the value that the variable is storing. This variable store a number.</comment></block></value><value name="B"><block type="variables_get_number" id="/{6P0pmg;7#KXE=3uO6R"><field name="VAR" id="{Y05iJbeC9,X%M5A=cu$" variabletype="Number">j</field><comment pinned="false" h="80" w="460">This block gets the value that the variable is storing. This variable store a number.</comment></block></value></block></value><next><block type="arduino_send_message" id="6%v{cFf2*dfQa9fCC|Wf"><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="number_to_string" id="A=`:dD2+sD27[lTMB$eo"><field name="PRECISION">2</field><comment pinned="false" h="190" w="460">This block turns a number into a text block. The precision controls how many decimal places of the number will be turned into text.
Let’s say you have 5.23234, and you specify 2 for the precision. The text block that this block would return “5.23”.</comment><value name="NUMBER"><block type="variables_get_number" id="_02qQRv2a7od45^hL4C="><field name="VAR" id="N7l/#d9~LyB;BXU?MZDs" variabletype="Number">number</field><comment pinned="false" h="80" w="460">This block gets the value that the variable is storing. This variable store a number.</comment></block></value></block></value><next><block type="delay_block" id="t!a[odNCX]Hk%z(yE#]E"><comment pinned="false" h="90" w="460">
Wait for the given/defined seconds.</comment><value name="DELAY"><block type="math_number" id="7wnJ`rQLmh!vFezOD0|2"><field name="NUM">0.2</field></block></value><next><block type="arduino_send_message" id="jSrll^,z7ad?bP89HAy#"><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="LM2*Df,3o9w~I,?*58!r"><field name="TEXT">---------------------------------------</field></block></value></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></statement></block></statement><next><block type="arduino_send_message" id="IbQ#f1-X|g8!inO:^aTA"><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="nu`)@xBjoGZrL78s.N^f"><field name="TEXT">DONE</field></block></value><next><block type="delay_block" id="X+x!V7p]~_#A06buNmb:"><comment pinned="false" h="90" w="460">
Wait for the given/defined seconds.</comment><value name="DELAY"><block type="math_number" id="!,)0NQns~!z|S|lAS~$m"><field name="NUM">20</field></block></value></block></next></block></next></block></next></block></statement></block></xml>