SHOW:
|
|
- or go back to the newest paste.
1 | rednet.open("top") | |
2 | mon = peripheral.wrap("bottom") | |
3 | while true do | |
4 | event,id,text = os.pullEvent() | |
5 | ||
6 | if (text == "11") then | |
7 | mon.setCursorPos(1,3) | |
8 | mon.write("prochain train dans") | |
9 | sleep(1) | |
10 | mon.setCursorPos(1,4) | |
11 | mon.write("21 sec") | |
12 | sleep(1) | |
13 | mon.setCursorPos(1,4) | |
14 | mon.write("20 sec") | |
15 | sleep(1) | |
16 | mon.setCursorPos(1,4) | |
17 | mon.write("19 sec") | |
18 | sleep(1) | |
19 | mon.setCursorPos(1,4) | |
20 | mon.write("18 sec") | |
21 | sleep(1) | |
22 | mon.setCursorPos(1,4) | |
23 | mon.write("17 sec") | |
24 | sleep(1) | |
25 | mon.setCursorPos(1,4) | |
26 | mon.write("16 sec") | |
27 | sleep(1) | |
28 | mon.setCursorPos(1,4) | |
29 | mon.write("15 sec") | |
30 | sleep(1) | |
31 | mon.setCursorPos(1,4) | |
32 | mon.write("14 sec") | |
33 | sleep(1) | |
34 | if (text == "10") then | |
35 | mon.setCursorPos(1,3) | |
36 | mon.write("prochain train dans") | |
37 | mon.setCursorPos(1,4) | |
38 | mon.write("13 sec") | |
39 | sleep(1) | |
40 | mon.setCursorPos(1,4) | |
41 | mon.write("12 sec") | |
42 | sleep(1) | |
43 | mon.setCursorPos(1,4) | |
44 | mon.write("11 sec") | |
45 | sleep(1) | |
46 | mon.setCursorPos(1,4) | |
47 | mon.write("10 sec") | |
48 | sleep(1) | |
49 | mon.setCursorPos(1,4) | |
50 | mon.write("9 sec") | |
51 | sleep(1) | |
52 | mon.setCursorPos(1,4) | |
53 | mon.write("8 sec") | |
54 | sleep(1) | |
55 | mon.setCursorPos(1,4) | |
56 | mon.write("7 sec") | |
57 | sleep(1) | |
58 | mon.setCursorPos(1,4) | |
59 | mon.write("6 sec") | |
60 | ||
61 | end | |
62 | end |