Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function clear()
- term.clear()
- term.setCursorPos(1,1)
- monitor.clear()
- monitor.setCursorPos(1,1)
- end
- function setup()
- dofile("format.lua")
- monitor=peripheral.wrap("top")
- clear()
- monitor.setTextScale(2)
- monitor.setTextColor(colors.lime)
- end
- function main()
- clear()
- t=os.time()
- t=textutils.formatTime(t,true)
- d=formatDays(os.day(), "%02d.%02d.%02d")
- print(t)
- print(d)
- monitor.write(" "..t.." Uhr")
- monitor.setCursorPos(1,2)
- monitor.write(" "..d)
- sleep(0.5)
- main()
- end
- setup()
- main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement