View difference between Paste ID: TmWtjNRz and 1Wb69RLn
SHOW: | | - or go back to the newest paste.
1
--backtank monitor
2-
mon.setTextScale(5)
2+
3
mon.setTextScale(2.5)
4
mon.clear()
5
mon.setBackgroundColour(colors.black)
6
mon.setTextColour(colors.white)
7
lettre = 1
8-
mon.setCursorPos(pos,1)
8+
pos = 1
9-
mon.write("+ Premiers Soins ")
9+
local texte = {
10-
pos = pos - 1
10+
" ",
11-
if pos == -16 then
11+
" ",
12
" ",
13
" ",
14
"r",
15
"e",
16
"c",
17
"h",
18
"a",
19
"r",
20
"g",
21
"e",
22
" ",
23
"é",
24
"q",
25
"u",
26
"i",
27
"p",
28
"e",
29
"m",
30
"e",
31
"n",
32
"t",
33
"  "
34
} 
35
while true do
36
lettre2 = lettre +1
37
lettre3 = lettre2 +1
38
lettre4 = lettre3 +1
39
lettre5 = lettre4 +1
40
mon.setCursorPos(2,pos)
41
mon.write(texte[lettre])
42
mon.setCursorPos(2,pos + 1)
43
mon.write(texte[lettre2])
44
mon.setCursorPos(2,pos + 2)
45
mon.write(texte[lettre3])
46
mon.setCursorPos(2,pos + 3)
47
mon.write(texte[lettre4])
48
mon.setCursorPos(2,pos + 4)
49
mon.write(texte[lettre5])
50
print(texte[lettre])
51
lettre = lettre + 1
52
pos = pos
53
if pos == 25 then
54
pos = 3
55
mon.clear()
56
end
57
if lettre == 25 then
58
lettre = 1
59
mon.clear()
60
end
61
sleep(0.5)
62
end