Advertisement
bigibas123

clock

Mar 29th, 2013
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. mon = peripheral.wrap("top") -- replace "top" with the side your monitor is on
  2. mon.setTextScale(5) -- change 5 to any any number between 0.5 and 5 to change the size of the text
  3. while true do
  4.      mon.clear()
  5.      mon.setCursorPos(1,1)
  6.      local nTime = os.time()
  7.      mon.write(textutils.formatTime(nTime,false))
  8.      sleep(1)
  9. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement