Advertisement
Guest User

uhr

a guest
Nov 23rd, 2014
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.37 KB | None | 0 0
  1.  
  2. side = "back" --This is the side of the monitor
  3. text = "Research Centure"
  4. mon = peripheral.wrap(side)
  5. mon.setTextScale(1.5)
  6. while true
  7. do
  8.  mon.setBackgroundColor(colors.blue)
  9.  mon.setCursorPos(1,1)
  10.  mon.write(text)
  11.  mon.setCursorPos(1,2)
  12.  mon.write(textutils.formatTime(os.time(),false)) -- use true for 12h time
  13.  sleep(1)
  14.  mon.clear()
  15.  term.setCursorPos(1,1)
  16. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement