Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local mon = peripheral.wrap("monitor_6")
- mon.setBackgroundColor(colors.black)
- mon.clear()
- while true do
- sleep(1)
- print(os.time())
- mon.setCursorPos(2,2)
- --mon.write(os.time())
- if os.time() > 6 and os.time() < 19 then
- mon.setBackgroundColor(colors.blue)
- mon.clear()
- mon.write(" Day")
- else
- mon.setBackgroundColor(colors.black)
- mon.clear()
- mon.write("Night")
- end
- mon.setCursorPos(1,4)
- mon.write(textutils.formatTime(os.time(), false))
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement