-
Notifications
You must be signed in to change notification settings - Fork 19
/
Examples.xml
75 lines (75 loc) · 2.6 KB
/
Examples.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<?xml version="1.0" encoding="utf-8" ?>
<category name="Examples" colour="330">
<block type="Blink_example">
<block type="pin_mode" x="34" y="60">
<field name="MODE">gpio.OUTPUT</field>
<value name="pin">
<block type="math_number">
<field name="NUM">0</field>
</block>
</value>
<next>
<block type="variables_set">
<field name="VAR">led_on</field>
<value name="VALUE">
<block type="math_number">
<field name="NUM">1</field>
</block>
</value>
<next>
<block type="tmr_alarm">
<field name="REPEAT">1</field>
<value name="timer">
<block type="math_number">
<field name="NUM">0</field>
</block>
</value>
<value name="interval">
<block type="math_number">
<field name="NUM">100</field>
</block>
</value>
<statement name="DO">
<block type="pin_write">
<value name="pin">
<block type="math_number">
<field name="NUM">0</field>
</block>
</value>
<value name="level">
<block type="variables_get">
<field name="VAR">led_on</field>
</block>
</value>
<next>
<block type="variables_set">
<field name="VAR">led_on</field>
<value name="VALUE">
<block type="math_arithmetic">
<field name="OP">MINUS</field>
<value name="A">
<shadow type="math_number">
<field name="NUM">1</field>
</shadow>
</value>
<value name="B">
<shadow type="math_number">
<field name="NUM">1</field>
</shadow>
<block type="variables_get">
<field name="VAR">led_on</field>
</block>
</value>
</block>
</value>
</block>
</next>
</block>
</statement>
</block>
</next>
</block>
</next>
</block>
</block>
</category>