-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproject.xml
More file actions
6 lines (4 loc) · 2.42 KB
/
project.xml
File metadata and controls
6 lines (4 loc) · 2.42 KB
1
2
3
4
5
6
<xml xmlns="https://developers.google.com/blockly/xml"><block type="message_setup" id="o(aa[#EhSDPvy%[dah7(" x="-728" y="-265"><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="time_setup" id="6(QvSKUDkZ~}7YSq~]Sj" x="-737" y="-81"><field name="time_in_seconds">0.1</field><comment pinned="false" h="80" w="460">This block sets up how much time will pass in the virtual circuit per loop.</comment></block><block type="arduino_loop" id="}:`snsqo[EG,Vl?mN]1w" deletable="false" x="-731" y="8"><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="arduino_send_message" id="tJ`ivy:L}NIG4ey5AZpo"><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="[F)Cq?]DyzB-|@39?Hoq"><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="time_seconds" id=":`kBc5^U%c,k`!^,C%)a"><comment pinned="false" h="80" w="460">Gets the number of seconds the arduino has been turned on.</comment></block></value></block></value><next><block type="delay_block" id="o|=W#Nb(UrU)-ei~c-Rs"><comment pinned="false" h="90" w="460">
Wait for the given/defined seconds.</comment><value name="DELAY"><block type="math_number" id="At6uo1=-l))1#iy8*B7("><field name="NUM">0.1</field></block></value></block></next></block></statement></block></xml>