SHARE
TWEET

startup

a guest Feb 26th, 2020 91 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. back = peripheral.wrap('back')
  2. right = peripheral.wrap('right')
  3.  
  4. right.setTextScale(2)
  5. back.setTextScale(2)
  6. status = "OFFLINE"
  7. instruct = ''
  8. ions = ''
  9. col = colors.red
  10. while true do
  11.     back.clear()
  12.     right.clear()
  13.     back.setTextScale(0.9)
  14.     right.setTextScale(0.9)
  15.     back.setCursorPos(6, 1)
  16.     right.setCursorPos(6, 1)
  17.     back.write("STATUS")
  18.     right.write("STATUS")
  19.     back.setCursorPos(2,3)
  20.     right.setCursorPos(2,3)
  21.     right.setTextColor(col)
  22.     back.setTextColor(col)
  23.     right.setTextColor(col)
  24.     back.write(status)
  25.     right.write(status)
  26.     sleep(0.1)
  27.     --right.setTextScale(0.5)
  28.     --back.setTextScale(0.5)
  29.     back.setCursorPos(1, 6)
  30.     right.setCursorPos(1,6)
  31.     back.write(instruct)
  32.     right.write(instruct)
  33.     right.setCursorPos(1, 7)
  34.     back.setCursorPos(1,7)
  35.     back.write(ions)
  36.     right.write(ions)
  37.    
  38.    
  39.     if rs.getInput('top') == true then
  40.         col = colors.green
  41.         status = 'ONLINE'
  42.         instruct = "VISIT THE PUBLIC COMMUNICATIONS"
  43.         ions = "OFFICE FOR FURHTER INSTRUCTIONS"
  44.         sleep(0.1)
  45.    
  46.     else
  47.         col = colors.red
  48.         status = "OFFLINE"
  49.         instruct = ""
  50.         ions = ""
  51.         sleep(0.1)
  52.     end
  53.     sleep(1)
  54. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top