Advertisement
Guest User

Untitled

a guest
Dec 13th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.45 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(1)
  11. mon_main.setBackgroundColor(colors.black)
  12. mon_main.clear()
  13. sleep(1)
  14. mon_main.setBackgroundColor(colors.red)
  15. mon_main.clear()
  16. sleep(1)
  17. mon_main.setBackgroundColor(colors.black)
  18. mon_main.clear()
  19. sleep(1)
  20. mon_main.setBackgroundColor(colors.red)
  21. mon_main.clear()
  22. sleep(1)
  23. mon_main.setBackgroundColor(colors.black)
  24. mon_main.clear()
  25. sleep(1)
  26. mon_main.setBackgroundColor(colors.red)
  27. mon_main.clear()
  28. sleep(1)
  29. mon_main.setBackgroundColor(colors.black)
  30. mon_main.clear()
  31. sleep(1)
  32. mon_main.setBackgroundColor(colors.red)
  33. mon_main.clear()
  34. sleep(1)
  35. mon_main.setBackgroundColor(colors.black)
  36. mon_main.clear()
  37. sleep(1)
  38. mon_main.setBackgroundColor(colors.red)
  39. mon_main.clear()
  40. sleep(1)
  41. mon_main.setBackgroundColor(colors.black)
  42. mon_main.clear()
  43. sleep(1)
  44. mon_main.setBackgroundColor(colors.red)
  45. mon_main.clear()
  46. sleep(1)
  47. mon_main.setBackgroundColor(colors.black)
  48. mon_main.clear()
  49. sleep(1)
  50.  
  51. end
  52.  
  53. function clearall()
  54. mon_main.clear()
  55. mon_info.clear()
  56. end
  57.  
  58. clearall()
  59.  
  60. mon_main.setCursorPos(1,ypos)
  61. mon_info.setCursorPos(1,1)
  62.  
  63. mon_info.write("Slots W.I.P")
  64.  
  65. mon_main.setCursorPos(xpos,ypos)
  66. mon_main.write("-= [0] [0] [0] =-")
  67.  
  68. sleep(3)
  69.  
  70. flashred()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement