Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local time = require("myapi/time")
- local monitor = require("myapi/monitor")
- local json = require("myapi/json")
- local vend = require("myapi/vend")
- local speaker = require("myapi/speaker")
- local startTime = nil
- while not startTime do
- startTime, timezone = time.getRealTime()
- --sleep(2)
- end
- local function welcome()
- local time = time.getTime(startTime, timezone)
- print(time)
- monitor.clearScreen()
- monitor.centerText(time)
- speaker.playJingle()
- sleep(1)
- end
- welcome()
- sleep(2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement