Advertisement
Guest User

Untitled

a guest
May 29th, 2016
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. m = peripheral.wrap("bottom")
  2. m.clear()
  3. m.setTextScale(2)
  4. m.setTextColor(colors.red)
  5. function updateClock(m)
  6. while true do
  7. mcT = os.time()
  8. m.setCursorPos(1,5)
  9. m.clearLine()
  10. m.setCursorPos(6,5)
  11. m.write(textutils.formatTime(mcT))
  12. m.setCursorPos(1,2)
  13. m.clearLine()
  14. m.setCursorPos(3,2)
  15. m.write("Jour "..os.day())
  16. sleep(0.1)
  17. end
  18. end
  19. updateClock(m)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement