Advertisement
Guest User

Untitled

a guest
Dec 13th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  1. local xpos = 12
  2. local ypos = 10
  3.  
  4. mon_main = peripheral.wrap("monitor_0")
  5. mon_info = peripheral.wrap("monitor_1")
  6.  
  7. function flashred()
  8. mon_main.setBackgroundColor(colors.red)
  9. mon_main.clear()
  10. sleep(0.5)
  11. mon_main.setBackgroundColor(colors.black)
  12. mon_main.clear()
  13. sleep(0.5)
  14. mon_main.setBackgroundColor(colors.red)
  15. mon_main.clear()
  16. sleep(0.5)
  17. mon_main.setBackgroundColor(colors.black)
  18. mon_main.clear()
  19. sleep(0.5)
  20. mon_main.setBackgroundColor(colors.red)
  21. mon_main.clear()
  22. sleep(0.5)
  23. mon_main.setBackgroundColor(colors.black)
  24. mon_main.clear()
  25. sleep(0.5)
  26. mon_main.setBackgroundColor(colors.red)
  27. mon_main.clear()
  28. sleep(0.5)
  29. mon_main.setBackgroundColor(colors.black)
  30. mon_main.clear()
  31. sleep(0.5)
  32. mon_main.setBackgroundColor(colors.red)
  33. mon_main.clear()
  34. sleep(0.5)
  35. mon_main.setBackgroundColor(colors.black)
  36. mon_main.clear()
  37. end
  38.  
  39. function clearall()
  40. mon_main.clear()
  41. mon_info.clear()
  42. end
  43.  
  44. clearall()
  45.  
  46. mon_main.setCursorPos(1,ypos)
  47. mon_info.setCursorPos(1,1)
  48.  
  49. mon_info.write("Slots W.I.P")
  50.  
  51. mon_main.setCursorPos(xpos,ypos)
  52. mon_main.write("-= [0] [0] [0] =-")
  53.  
  54. sleep(3)
  55.  
  56. flashred()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement