View difference between Paste ID: NP3dDiD9 and YG1P0GTD
SHOW: | | - or go back to the newest paste.
1
rednet.open("left");
2
local m = peripheral.wrap("back");
3
m.clear();
4
m.setTextColor(colors.white);
5
m.setBackgroundColor(colors.black);
6
m.clear();
7
m.setTextScale(3);
8
-- 1 Start
9
m.setCursorPos(1,1);
10
m.setBackgroundColor(colors.blue);
11
m.write("     1     ");
12
-- 1 End
13
-- 2 Start
14
m.setCursorPos(1,2);
15
m.setBackgroundColor(colors.blue);
16
m.write("     2     ");
17
-- 2 End
18
-- 3 Start
19
m.setCursorPos(1,3);
20
m.setBackgroundColor(colors.blue);
21
m.write("     3     ");
22
-- 3 End
23
-- 4 Start
24
m.setCursorPos(1,4);
25
m.setBackgroundColor(colors.blue);
26
m.write("     4     ");
27
-- 4 End
28
-- 5 Start
29
m.setCursorPos(1,5);
30
m.setBackgroundColor(colors.blue);
31
m.write("     5     ");
32
-- 5 End
33
-- 10 Start
34
m.setCursorPos(1,6);
35
m.setBackgroundColor(colors.blue);
36
m.write("     10    ");
37
-- 10 End
38
-- 15 Start
39
m.setCursorPos(1,7);
40
m.setBackgroundColor(colors.blue);
41
m.write("     15    ");
42
-- 15 End
43
-- 20 Start
44
m.setCursorPos(1,8);
45
m.setBackgroundColor(colors.blue);
46
m.write("     20    ");
47
-- 20 End
48
-- 25 Start
49
m.setCursorPos(1,9);
50
m.setBackgroundColor(colors.blue);
51
m.write("     25    ");
52
-- 25 End
53
while true do
54
local senderId, message, protocol = rednet.receive("boxes");
55
if message == "1" then
56
m.setCursorPos(1,1);
57
m.setBackgroundColor(colors.black);
58
m.write("           ");
59
elseif message == "2" then
60
61
elseif message == "3" then
62
63
elseif message == "4" then
64
65
elseif message == "5" then
66
67
elseif message == "10" then
68
69
elseif message == "15" then
70
71
elseif message == "20" then
72
73
elseif message == "25" then
74
75
elseif message == "50" then
76
77
elseif message == "100" then
78
79
elseif message == "150" then
80
81
elseif message == "200" then
82
83
elseif message == "250" then
84
85
elseif message == "500" then
86
87
elseif message == "750" then
88
89
elseif message == "1000" then
90
91
elseif message == "2000" then
92
93
elseif message == "5000" then
94
95
end
96
sleep(1);
97
end