View difference between Paste ID: MiG90VjJ and 5h9PUw8g
SHOW: | | - or go back to the newest paste.
1
m=peripheral.wrap("front")
2
t="Day"
3-
m.clear()
3+
side="back"
4-
m.setTextScale(5)
4+
5-
m.setCursorPos(1,1)
5+
if os.time()<=18.5 and os.time()>=6.0 and t=="Night" then
6-
if os.time()<=18.5 then
6+
t="Day"
7-
m.write("Day")
7+
rs.setOutput(side,true)
8-
rs.setOutput("top",false)
8+
9-
else
9+
rs.setOutput(side,false)
10-
m.write("Night")
10+
11-
rs.setOutput("top",true)
11+
if os.time()<=6.0 and os.time()>=18.5 and t=="Day" then
12
t="Night"
13
rs.setOutput(side,true)
14-
14+
15
rs.setOutput(side,false)
16
end
17
sleep(1)
18
end