-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproject.xml
More file actions
14 lines (11 loc) · 6.66 KB
/
project.xml
File metadata and controls
14 lines (11 loc) · 6.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<xml xmlns="https://developers.google.com/blockly/xml"><block type="lcd_setup" id="Eh(~w3Xsu?({Ct92qfg!" x="54" y="3"><field name="MEMORY_TYPE">0x3F</field><field name="SIZE">20 x 4</field><field name="PIN_SDA">A4</field><field name="PIN_SCL">A5</field><comment pinned="false" h="240" w="460">This block sets up the LCD screen.
The chip determines the memory type. Check where you purchased your chip; if you don’t know, try both, and it will be easy to see.
For the size we the first number is the width, and the second number is the height. 16 x 2, 16 would be spaces left to right, and 2 would be 2 spaces up and down.</comment></block><block type="arduino_loop" id="+l+;y8F8$@M$Kvrwe~!!" deletable="false" x="48" y="162"><field name="LOOP_TIMES">3</field><comment pinned="false" h="170" w="460">The void loop function runs over and over again forever</comment><statement name="loop"><block type="lcd_screen_simple_print" id="QfGH!v=Flc{Ov#@+?ZO^"><comment pinned="false" h="120" w="460">Prints something on the LCD screens and then clears it off. The "Seconds to show" block is how many seconds the LCD Screen will display the message.</comment><value name="ROW_1"><block type="text" id="MA~h2,;7Us|G|=Jj46!n"><field name="TEXT">Hello</field></block></value><value name="ROW_2"><block type="text" id="Vs6`Lb]_%9;lW_a+eVjh"><field name="TEXT"> World</field></block></value><value name="ROW_3"><block type="text" id="Lq%Q6*;J$B/.x{sdKH3~"><field name="TEXT"> Test</field></block></value><value name="ROW_4"><block type="text" id="A;Uwe.jRPJm[atM2F[2q"><field name="TEXT"> .# moo #- </field></block></value><value name="DELAY"><block type="math_number" id="R:]l$[,*j=,^v,`J*g4%"><field name="NUM">3</field></block></value><next><block type="delay_block" id="QL6DAy3|3ubFF)Hi,#PZ"><comment pinned="false" h="90" w="460">
Wait for the given/defined seconds.</comment><value name="DELAY"><block type="math_number" id="ghCl)$PkbHpd^b;kx#b}"><field name="NUM">0.2</field></block></value><next><block type="lcd_screen_print" id="lB-TkCMMoyhqD;/I[s|C"><comment pinned="false" h="190" w="460">This block prints something on the LCD screen. The column number controls the x position, and the row number controls the y. X means left to right, and Y means up and down.
For Y, as you go down, the numbers go up. So the first column is 1, and the next column down is 2.</comment><value name="ROW"><block type="math_number" id="%2XfC9,g6w^MSQ[n]}ww"><field name="NUM">1</field></block></value><value name="COLUMN"><block type="math_number" id="aVb)+6uuart-]2U)*U4w"><field name="NUM">1</field></block></value><value name="PRINT"><block type="text" id="%oV~S{8OEJ/e96om8z7y"><field name="TEXT">Hi</field></block></value><next><block type="controls_repeat_ext" id="[R?2fYuGK[}]sT34)7U("><value name="TIMES"><block type="math_number" id="n=Xttp=6!Fh(t=vkrO7]"><field name="NUM">18</field></block></value><statement name="DO"><block type="lcd_scroll" id="hC2,q8,qf2NHa4Y%KXuU"><field name="DIR">RIGHT</field><comment pinned="false" h="70" w="460">This block shifts all the text to the left or right.</comment><next><block type="delay_block" id="CQ`3K4I|z8KqjfcdYIKG"><comment pinned="false" h="90" w="460">
Wait for the given/defined seconds.</comment><value name="DELAY"><block type="math_number" id="H@9f5M6.!P=0rre]!jQ)"><field name="NUM">0.2</field></block></value></block></next></block></statement><next><block type="controls_repeat_ext" id="7l~K]Sn*;j#_wbQ.FdEn"><value name="TIMES"><block type="math_number" id="1%6TnD!K1jxI.o~6`_5:"><field name="NUM">18</field></block></value><statement name="DO"><block type="lcd_scroll" id="(b8GADE|H]P#.`2frC;8"><field name="DIR">LEFT</field><comment pinned="false" h="70" w="460">This block shifts all the text to the left or right.</comment><next><block type="delay_block" id="lKDefudPiBM8(;7Wg;/O"><comment pinned="false" h="90" w="460">
Wait for the given/defined seconds.</comment><value name="DELAY"><block type="math_number" id="$V*!r.i~i1W;mg!PcTN|"><field name="NUM">0.2</field></block></value></block></next></block></statement><next><block type="lcd_screen_clear" id="{u}Lgpy%v_}^`Q(@1QjF"><comment pinned="false" h="60" w="460">This block clears all the text on the LCD Screen.</comment><next><block type="lcd_blink" id="3@.XeVC!^Hk#4uf?cC+M"><field name="BLINK">BLINK</field><comment pinned="false" h="80" w="460">This block turns on or off the blinking space on the LCD screen.</comment><value name="ROW"><block type="math_number" id="{3c_$#%*T|nYn@o{uV5U"><field name="NUM">4</field></block></value><value name="COLUMN"><block type="math_number" id="jcM80=J`^9IlM4Jw-5|k"><field name="NUM">10</field></block></value><next><block type="delay_block" id="YYl[^-QwlFwH]HhH!XiH"><comment pinned="false" h="90" w="460">
Wait for the given/defined seconds.</comment><value name="DELAY"><block type="math_number" id="gUt0esJKN-X#Bz?/RsJg"><field name="NUM">1</field></block></value><next><block type="lcd_blink" id="rYoD5}Q,E3F4$sLN:^N1"><field name="BLINK">OFF</field><comment pinned="false" h="80" w="460">This block turns on or off the blinking space on the LCD screen.</comment><value name="ROW"><block type="math_number" id="*r?gYUN^L!y0I6FvCJN`"><field name="NUM">4</field></block></value><value name="COLUMN"><block type="math_number" id="Cg3R~KE6_5+ObE=2emAO"><field name="NUM">10</field></block></value><next><block type="delay_block" id="Ru%;:ZmvCSZD.=i-0D?K"><comment pinned="false" h="90" w="460">
Wait for the given/defined seconds.</comment><value name="DELAY"><block type="math_number" id="dUw~TdKo1Mc*=d:eJ1BA"><field name="NUM">1</field></block></value><next><block type="lcd_backlight" id="ca7jk?Q,9sDk5N#eAjO1"><field name="BACKLIGHT">OFF</field><comment pinned="false" h="80" w="460">This block turns on and off the backlight in the LCD Screen.</comment><next><block type="delay_block" id="~0IT6SR{}VjQfC3y9.U#"><comment pinned="false" h="90" w="460">
Wait for the given/defined seconds.</comment><value name="DELAY"><block type="math_number" id="F#F/V:?cqMrtg/|+?+:@"><field name="NUM">1</field></block></value><next><block type="lcd_backlight" id="-0N3nA;^3=O)`Vhq7zc,"><field name="BACKLIGHT">ON</field><comment pinned="false" h="80" w="460">This block turns on and off the backlight in the LCD Screen.</comment><next><block type="delay_block" id="V7|`e2uNq4E.;bG!E[QY"><comment pinned="false" h="90" w="460">
Wait for the given/defined seconds.</comment><value name="DELAY"><block type="math_number" id="#O={K=|f?]LD6l`-MwP."><field name="NUM">1</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></xml>