Gaimo

clock

Nov 12th, 2020 (edited)
1,586
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.23 KB | None | 0 0
  1. monitor = peripheral.wrap("left")
  2.  
  3. peripheral.call("left", "clear")
  4. monitor.setCursorPos(1,1)
  5. monitor.write("RELOGIO")
  6.  
  7. while true do
  8.     sleep(0)
  9.     monitor.setCursorPos(1,3)
  10.     monitor.write(textutils.formatTime(os.time()))
  11.  
  12. end
  13.  
Advertisement
Add Comment
Please, Sign In to add comment