Debian Codegraph @

online/static/samples/Explore Atmega32/Switch Piano.xml

raw symbols SCIP
1 <xml xmlns="https://developers.google.com/blockly/xml">
2 <description>
3 <![CDATA[
4
5 ## Play Piano with PORTA switches
6
7 Only enable one switch at a time
8
9 ]]>
10 </description>
11 <variables>
12 <variable id="LbE2%mV/CRs,w^fwYIZy">switches</variable>
13 </variables>
14 <block type="add_piano" id="-g!{fH|z*m+5X!QOlm(|" x="0" y="0">
15 <next>
16 <block type="set_reg_bits" id="|3waDCpz*X@8wo~J$=0i">
17 <field name="REGISTER">DDRA</field>
18 <field name="B7">FALSE</field>
19 <field name="B6">FALSE</field>
20 <field name="B5">FALSE</field>
21 <field name="B4">FALSE</field>
22 <field name="B3">FALSE</field>
23 <field name="B2">FALSE</field>
24 <field name="B1">FALSE</field>
25 <field name="B0">FALSE</field>
26 <next>
27 <block type="set_reg_bits_string" id="Cr|-y.+Yayrl/:Reg}ii">
28 <field name="REGISTER">PORTA</field>
29 <field name="B7">TRUE</field>
30 <field name="B6">TRUE</field>
31 <field name="B5">TRUE</field>
32 <field name="B4">TRUE</field>
33 <field name="B3">TRUE</field>
34 <field name="B2">TRUE</field>
35 <field name="B1">TRUE</field>
36 <field name="B0">TRUE</field>
37 <next>
38 <block type="controls_repeat_ext" id="%oI+O+xp08-zmsfzKoyk">
39 <value name="TIMES">
40 <shadow type="math_number" id="Pb=`jTZVX`sMgtde:KX_">
41 <field name="NUM">10000</field>
42 </shadow>
43 </value>
44 <statement name="DO">
45 <block type="variables_set" id="LfL+XY^=}JyNca24Oqdc">
46 <field name="VAR" id="LbE2%mV/CRs,w^fwYIZy">switches</field>
47 <value name="VALUE">
48 <block type="get_reg_from_string" id="NBHFr]A@6%^5?wb.VlR+">
49 <field name="REGISTER">PINA</field>
50 </block>
51 </value>
52 <next>
53 <block type="controls_if" id="tc-BNo0UQPSRs$PH18=:">
54 <value name="IF0">
55 <block type="logic_compare" id=";Nyvp]VTUhj2sG^:VU;P">
56 <field name="OP">EQ</field>
57 <value name="A">
58 <block type="variables_get" id="2w1Mk,Q_OkI;,%u*#yKM">
59 <field name="VAR" id="LbE2%mV/CRs,w^fwYIZy">switches</field>
60 </block>
61 </value>
62 <value name="B">
63 <block type="math_number" id="ae#3HVHSwG+EKgCiLfRS">
64 <field name="NUM">128</field>
65 </block>
66 </value>
67 </block>
68 </value>
69 <statement name="DO0">
70 <block type="play_piano" id="#;2~$Sa?x!WKqou4LJ}K">
71 <value name="NOTE">
72 <shadow type="text" id=";LB}ie$t]dPN]2ZLMk;l">
73 <field name="TEXT">C</field>
74 </shadow>
75 <block type="text" id="}_uw0wnrLIlilPPJyMs(">
76 <field name="TEXT">C</field>
77 </block>
78 </value>
79 <next>
80 <block type="wait_seconds" id="+D2sW#zYT^DB4m(J,s]v">
81 <field name="SECONDS">0.5</field>
82 </block>
83 </next>
84 </block>
85 </statement>
86 <next>
87 <block type="controls_if" id="a8kLjUl87!Ja9x!U9xy/">
88 <value name="IF0">
89 <block type="logic_compare" id="KF.hp0,LfGL2?UvD1,$7">
90 <field name="OP">EQ</field>
91 <value name="A">
92 <block type="variables_get" id="%S+^L,Ggb^0/u)=`nr=b">
93 <field name="VAR" id="LbE2%mV/CRs,w^fwYIZy">switches</field>
94 </block>
95 </value>
96 <value name="B">
97 <block type="math_number" id="|q.;%:8{`+~#-E0~3=AJ">
98 <field name="NUM">64</field>
99 </block>
100 </value>
101 </block>
102 </value>
103 <statement name="DO0">
104 <block type="play_piano" id=",q)h`t:M:^Tx-crOMIzI">
105 <value name="NOTE">
106 <shadow type="text" id=";LB}ie$t]dPN]2ZLMk;l">
107 <field name="TEXT">C</field>
108 </shadow>
109 <block type="text" id="yL#v2of)p2c8;o`j@d8;">
110 <field name="TEXT">D</field>
111 </block>
112 </value>
113 <next>
114 <block type="wait_seconds" id="6Lwnv+o`?;Z7omX|uTSN">
115 <field name="SECONDS">0.5</field>
116 </block>
117 </next>
118 </block>
119 </statement>
120 <next>
121 <block type="controls_if" id="`hyDs~6/F%YrHjXK{u*I">
122 <value name="IF0">
123 <block type="logic_compare" id="$-.|QL=EY8`V)ex`84I2">
124 <field name="OP">EQ</field>
125 <value name="A">
126 <block type="variables_get" id="~Btc4N?+Q_B%E^1!{oR-">
127 <field name="VAR" id="LbE2%mV/CRs,w^fwYIZy">switches</field>
128 </block>
129 </value>
130 <value name="B">
131 <block type="math_number" id="@%aiv6?,43,gCGI}/8@N">
132 <field name="NUM">32</field>
133 </block>
134 </value>
135 </block>
136 </value>
137 <statement name="DO0">
138 <block type="play_piano" id="@V4hYx#z7LYpeyQK+?*3">
139 <value name="NOTE">
140 <shadow type="text" id=";LB}ie$t]dPN]2ZLMk;l">
141 <field name="TEXT">C</field>
142 </shadow>
143 <block type="text" id="P;0KfoQ_{-R..@2@QQdB">
144 <field name="TEXT">E</field>
145 </block>
146 </value>
147 <next>
148 <block type="wait_seconds" id="T-@sPjR[i)-wFeCmd?[^">
149 <field name="SECONDS">0.5</field>
150 </block>
151 </next>
152 </block>
153 </statement>
154 <next>
155 <block type="controls_if" id=",v02U_U!1Sj[=.3!EE:A">
156 <value name="IF0">
157 <block type="logic_compare" id="RwBqTvL8i:=4]l/1qc#M">
158 <field name="OP">EQ</field>
159 <value name="A">
160 <block type="variables_get" id="~yDeRva=hI=Ky:R(eZNW">
161 <field name="VAR" id="LbE2%mV/CRs,w^fwYIZy">switches</field>
162 </block>
163 </value>
164 <value name="B">
165 <block type="math_number" id="8;3Hj?GYn[si$?is,Aas">
166 <field name="NUM">16</field>
167 </block>
168 </value>
169 </block>
170 </value>
171 <statement name="DO0">
172 <block type="play_piano" id="FI*Q0.WX1uHha(FG6H@=">
173 <value name="NOTE">
174 <shadow type="text" id=";LB}ie$t]dPN]2ZLMk;l">
175 <field name="TEXT">C</field>
176 </shadow>
177 <block type="text" id="9`~`Ei+[[d%7c5)6IBJr">
178 <field name="TEXT">F</field>
179 </block>
180 </value>
181 <next>
182 <block type="wait_seconds" id="Aq)CVp)J@!jw`fqXm+4P">
183 <field name="SECONDS">0.5</field>
184 </block>
185 </next>
186 </block>
187 </statement>
188 <next>
189 <block type="controls_if" id="I{{Q}sWKBc.Q;*7}/uI`">
190 <value name="IF0">
191 <block type="logic_compare" id="r)3;}9Htr;cLBTeEjci-">
192 <field name="OP">EQ</field>
193 <value name="A">
194 <block type="variables_get" id="dk-tWuk:78}=M-37Oag:">
195 <field name="VAR" id="LbE2%mV/CRs,w^fwYIZy">switches</field>
196 </block>
197 </value>
198 <value name="B">
199 <block type="math_number" id="y;g=K?/qt$nG*_T(RX~=">
200 <field name="NUM">8</field>
201 </block>
202 </value>
203 </block>
204 </value>
205 <statement name="DO0">
206 <block type="play_piano" id="o-V6zqlv_vL`wPsSc`^/">
207 <value name="NOTE">
208 <shadow type="text" id=";LB}ie$t]dPN]2ZLMk;l">
209 <field name="TEXT">C</field>
210 </shadow>
211 <block type="text" id="7U1R:/.uF;l~*KM4+VNY">
212 <field name="TEXT">G</field>
213 </block>
214 </value>
215 <next>
216 <block type="wait_seconds" id="^X46C@z1CLY4i6hXUm|-">
217 <field name="SECONDS">0.5</field>
218 </block>
219 </next>
220 </block>
221 </statement>
222 <next>
223 <block type="controls_if" id="TQ20{7I^vo,#shT?5mQM">
224 <value name="IF0">
225 <block type="logic_compare" id="}t1YIn{+$gEhHT|Q:OkV">
226 <field name="OP">EQ</field>
227 <value name="A">
228 <block type="variables_get" id="b|3kpE+Jgv.Pyclv;npn">
229 <field name="VAR" id="LbE2%mV/CRs,w^fwYIZy">switches</field>
230 </block>
231 </value>
232 <value name="B">
233 <block type="math_number" id="=^UaLGF|W3Xe|#/A1EnG">
234 <field name="NUM">4</field>
235 </block>
236 </value>
237 </block>
238 </value>
239 <statement name="DO0">
240 <block type="play_piano" id="g.b;)mmRrphbKqUqd|/}">
241 <value name="NOTE">
242 <shadow type="text" id=";LB}ie$t]dPN]2ZLMk;l">
243 <field name="TEXT">C</field>
244 </shadow>
245 <block type="text" id="MIiwcgw16~abkkM}+kCm">
246 <field name="TEXT">A</field>
247 </block>
248 </value>
249 <next>
250 <block type="wait_seconds" id="CMj$]g)9i51)0=E=Uvz:">
251 <field name="SECONDS">0.5</field>
252 </block>
253 </next>
254 </block>
255 </statement>
256 <next>
257 <block type="controls_if" id="o1=/Hxr%7@:%][2*qTof">
258 <value name="IF0">
259 <block type="logic_compare" id="$;!P:t56U|[lgW0oiQO2">
260 <field name="OP">EQ</field>
261 <value name="A">
262 <block type="variables_get" id="lEvu#B8;$-xYAVwo~(bL">
263 <field name="VAR" id="LbE2%mV/CRs,w^fwYIZy">switches</field>
264 </block>
265 </value>
266 <value name="B">
267 <block type="math_number" id="8i%{FEN5czKk_EOfn+fa">
268 <field name="NUM">2</field>
269 </block>
270 </value>
271 </block>
272 </value>
273 <statement name="DO0">
274 <block type="play_piano" id="3CqP@pX_3A7+[s:19fjG">
275 <value name="NOTE">
276 <shadow type="text" id=";LB}ie$t]dPN]2ZLMk;l">
277 <field name="TEXT">C</field>
278 </shadow>
279 <block type="text" id="t?R;Ro$gB+KZ)-{;,I`n">
280 <field name="TEXT">B</field>
281 </block>
282 </value>
283 <next>
284 <block type="wait_seconds" id="ffi2qmelrJ17`L`|YNhr">
285 <field name="SECONDS">0.5</field>
286 </block>
287 </next>
288 </block>
289 </statement>
290 <next>
291 <block type="controls_if" id="r0RTm`RWtsGGksxsy}GE">
292 <value name="IF0">
293 <block type="logic_compare" id="wd:9u$2Yg51Mfq)M?f6D">
294 <field name="OP">EQ</field>
295 <value name="A">
296 <block type="variables_get" id="FEVBAP+y+QW/7ncsoqOV">
297 <field name="VAR" id="LbE2%mV/CRs,w^fwYIZy">switches</field>
298 </block>
299 </value>
300 <value name="B">
301 <block type="math_number" id="(|wJp*T73O;Jut7]cMtB">
302 <field name="NUM">1</field>
303 </block>
304 </value>
305 </block>
306 </value>
307 <statement name="DO0">
308 <block type="play_piano" id=";DW6B5n[z1Jo_)|8/#YJ">
309 <value name="NOTE">
310 <shadow type="text" id=";LB}ie$t]dPN]2ZLMk;l">
311 <field name="TEXT">C</field>
312 </shadow>
313 <block type="text" id="/rKSm2Af^(tjc9=g]=g!">
314 <field name="TEXT">2C</field>
315 </block>
316 </value>
317 <next>
318 <block type="wait_seconds" id=":pvgd+cvq.cI~ZBA3T6M">
319 <field name="SECONDS">0.5</field>
320 </block>
321 </next>
322 </block>
323 </statement>
324 <next>
325 <block type="wait_seconds" id="{5atP%v(8N*p%B2]BP`/">
326 <field name="SECONDS">0.01</field>
327 </block>
328 </next>
329 </block>
330 </next>
331 </block>
332 </next>
333 </block>
334 </next>
335 </block>
336 </next>
337 </block>
338 </next>
339 </block>
340 </next>
341 </block>
342 </next>
343 </block>
344 </next>
345 </block>
346 </statement>
347 </block>
348 </next>
349 </block>
350 </next>
351 </block>
352 </next>
353 </block>
354 </xml>