Advertisement
yeeeeeeeeeeeee

eeeee

May 5th, 2025
26
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. -- Get the monitor on the left
  2. local monitor = peripheral.wrap("left")
  3.  
  4. -- Redirect terminal output to monitor
  5. term.redirect(monitor)
  6.  
  7. -- Clear and set text color
  8. term.setTextColor(colors.white)
  9.  
  10. -- Set how long each color stays (in seconds)
  11. local delay = 1 -- Changed to 1 second
  12.  
  13. -- Flash loop
  14. while true do
  15. -- Blue screen
  16. term.setBackgroundColor(colors.blue)
  17. term.clear()
  18. term.setCursorPos(1, 1)
  19. print("Blue")
  20. sleep(delay)
  21.  
  22. -- Red screen
  23. term.setBackgroundColor(colors.red)
  24. term.clear()
  25. term.setCursorPos(1, 1)
  26. print("Red")
  27. sleep(delay)
  28. end
  29.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement