Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local m = peripheral.wrap("top")
- local lo = 0
- function main()
- while( lo < 16 )
- do
- local t = textutils.formatTime(os.time(), true)
- local nT = textutils.formatTime(18, true)
- if t == nT then
- m.write("zeit zu wechseln")
- rs.setOutput("left", true)
- sleep(0.1)
- rs.setOutput("left", false)
- os.reboot()
- end
- m.write("Es ist "..t.." Uhr")
- sleep(0.8)
- m.clear()
- m.setCursorPos(1,2)
- lo = lo + 1
- if lo == 15 then
- os.reboot()
- end
- end
- end
- main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement