Advertisement
s3ptum

clock

Sep 14th, 2013
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. side = "back" --This is the side of the monitor
  2. text = "Mega Inc."
  3. mon = peripheral.wrap(side)
  4. mon.setTextScale(5)
  5. mon.setTextColor(8)
  6. while true
  7. do
  8. mon.setCursorPos(1,1)
  9. mon.write(text)
  10. mon.setCursorPos(1,2)
  11. mon.write(textutils.formatTime(os.time(),false)) -- use true for 12h time
  12. sleep(1)
  13. mon.clear()
  14. term.setCursorPos(1,1)
  15. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement