KiwiiCorne

Untitled

Jul 24th, 2020
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. m=peripheral.wrap("top")
  2. m.clear()
  3. t=1
  4. while true do --=--
  5. m.setTextScale(1)
  6. m.setBackgroundColor(colors.yellow)
  7. m.setTextColor(colors.black)
  8. m.clear()
  9. m.setCursorPos(1,2)
  10. local nTime = os.time() --=--
  11. m.write( "Time: "..textutils.formatTime( nTime, false ) ) --=--
  12. m.setCursorPos(t,3)
  13. m.setTextColor(colors.red)
  14. if nTime > 12 then
  15. m.write("Bonsoir")
  16. else m.write("Bonjour") end
  17. t=t+1
  18. if t>15 then t=-6 end
  19. sleep(0.3) --=O=--
  20. end --=--
  21. -- Originalemant par HBA112 : "--=--" --
  22. -- Faites CTRL+R maintenue pour relancer le programme --
Advertisement
Add Comment
Please, Sign In to add comment