-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproject.xml
More file actions
5 lines (4 loc) · 7.16 KB
/
project.xml
File metadata and controls
5 lines (4 loc) · 7.16 KB
1
2
3
4
5
<xml xmlns="https://developers.google.com/blockly/xml"><variables><variable type="Colour" id=")))_^m*8Tgn.,cMw{}7p">deep blue</variable><variable type="Boolean" id="[jg)%.E^=;yr;AL-`5nH">awesome</variable><variable type="String" id="2TX8W(@VGP$qV{6E$Vyy">name</variable><variable type="Number" id="r?.{;ZM-,i8SGX`_Dbey">num</variable></variables><block type="message_setup" id="voGGfv#}UWYQ!Fs^G3H#" x="-703" y="-830"><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="rgb_led_setup" id="C7S`ys$9I%$bHmyfe.#)" x="-676" y="-632"><field name="NUMBER_OF_COMPONENTS">1</field><field name="PIN_RED_1">11</field><field name="PIN_GREEN_1">10</field><field name="PIN_BLUE_1">9</field><field name="PIN_RED_2">6</field><field name="PIN_GREEN_2">5</field><field name="PIN_BLUE_2">3</field><comment pinned="false" h="100" w="460">This block tells the Arduino which pin to use for each color. RGB stands for red, green, and blue. By combining colors, you can make other colors.</comment></block><block type="arduino_loop" id="}:`snsqo[EG,Vl?mN]1w" deletable="false" x="-705" y="-494"><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_colour" id="othK{hn%$-CySDW?9YOJ"><field name="VAR" id=")))_^m*8Tgn.,cMw{}7p" variabletype="Colour">deep blue</field><comment pinned="false" h="90" w="460">This block sets the value the variable is storing. This variable will store color only.</comment><value name="VALUE"><block type="color_picker_custom" id="as.zyi)):-HQFH%{AT,5"><field name="COLOR">#0059ff</field></block></value><next><block type="variables_set_boolean" id="qS1(oYNd[DgFY67Ku]kl"><field name="VAR" id="[jg)%.E^=;yr;AL-`5nH" variabletype="Boolean">awesome</field><comment pinned="false" h="90" w="460">This block sets the value the variable is storing. This variable will store boolean only.</comment><value name="VALUE"><block type="logic_boolean" id="#;a%lt@G*6xXs^a8C!0o"><field name="BOOL">TRUE</field></block></value><next><block type="variables_set_string" id="hf4MzVjPIaFuWk}adLG3"><field name="VAR" id="2TX8W(@VGP$qV{6E$Vyy" variabletype="String">name</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="v}TOy0.!4TDYJ%(r_)U`"><field name="TEXT">Robo1000</field></block></value><next><block type="variables_set_number" id="C;.4bPvpSGfy~$jAKCwJ"><field name="VAR" id="r?.{;ZM-,i8SGX`_Dbey" variabletype="Number">num</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="Hi$2kze(Ls+myE,Q~h?z"><field name="NUM">33</field></block></value><next><block type="control_if" id="rZN0EF`6Guw=)%i.EtP_"><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="D{}PmsxOWCrw-KASh.zC"><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="variables_get_number" id="YyG}9uSR$$C^.AIq6j^4"><field name="VAR" id="r?.{;ZM-,i8SGX`_Dbey" variabletype="Number">num</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="math_number" id="$J}sI}?mX$6r1L)/1{(V"><field name="NUM">33</field></block></value></block></value><statement name="DO0"><block type="led" id="V]L?*{T^/oBdM@:y6/rb"><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><next><block type="delay_block" id="16=-8j_GfFB4P)#|*OpC"><comment pinned="false" h="90" w="460">
Wait for the given/defined seconds.</comment><value name="DELAY"><block type="math_number" id="LW*KIKM-;hA8=D:P)9%L"><field name="NUM">1</field></block></value><next><block type="arduino_send_message" id="1UXgA=iCytF?P@`t,P@F"><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_join" id="mzIUMNLX}!lX=uSV`qUd"><mutation items="2"></mutation><comment pinned="false" h="60" w="460">Turns multiple text blocks into one text block.</comment><value name="ADD0"><block type="text" id=".*h_O6._$SN*NGl,zmsS"><field name="TEXT">Hi, </field></block></value><value name="ADD1"><block type="variables_get_string" id="2?bnuI5I7G-h|Z4UbW#O"><field name="VAR" id="2TX8W(@VGP$qV{6E$Vyy" variabletype="String">name</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><next><block type="delay_block" id="ovd:{!V)1jct;E%.=EzD"><comment pinned="false" h="90" w="460">
Wait for the given/defined seconds.</comment><value name="DELAY"><block type="math_number" id=":qa^w@}ovLwW@J@3{F=|"><field name="NUM">1</field></block></value><next><block type="control_if" id="O2#.Z195lIt^7NcFpgup"><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="variables_get_boolean" id="SUkXLZ}[5Xn3W#(ZK~Ut"><field name="VAR" id="[jg)%.E^=;yr;AL-`5nH" variabletype="Boolean">awesome</field><comment pinned="false" h="80" w="460">This block gets the value that the variable is storing. This variable store a boolean.</comment></block></value><statement name="DO0"><block type="led" id="#YaN(b-M1BYOC![3Fp0;"><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="set_color_led" id="3whe$orJS{Sa,szw*CoH"><field name="WHICH_COMPONENT">1</field><comment pinned="false" h="130" w="460">Set the RGB LED colour.</comment><value name="COLOR"><block type="variables_get_colour" id="P[XM$9G(7+EVI#@hjB/M"><field name="VAR" id=")))_^m*8Tgn.,cMw{}7p" variabletype="Colour">deep blue</field><comment pinned="false" h="80" w="460">This block gets the value that the variable is storing. This variable store a color.</comment></block></value></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></statement></block></xml>