Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- back = peripheral.wrap('back')
- right = peripheral.wrap('right')
- right.setTextScale(2)
- back.setTextScale(2)
- status = "OFFLINE"
- instruct = ''
- ions = ''
- col = colors.red
- while true do
- back.clear()
- right.clear()
- back.setTextScale(0.9)
- right.setTextScale(0.9)
- back.setCursorPos(6, 1)
- right.setCursorPos(6, 1)
- back.write("STATUS")
- right.write("STATUS")
- back.setCursorPos(2,3)
- right.setCursorPos(2,3)
- right.setTextColor(col)
- back.setTextColor(col)
- right.setTextColor(col)
- back.write(status)
- right.write(status)
- sleep(0.1)
- --right.setTextScale(0.5)
- --back.setTextScale(0.5)
- back.setCursorPos(1, 6)
- right.setCursorPos(1,6)
- back.write(instruct)
- right.write(instruct)
- right.setCursorPos(1, 7)
- back.setCursorPos(1,7)
- back.write(ions)
- right.write(ions)
- if rs.getInput('top') == true then
- col = colors.green
- status = 'ONLINE'
- instruct = "VISIT THE PUBLIC COMMUNICATIONS"
- ions = "OFFICE FOR FURHTER INSTRUCTIONS"
- sleep(0.1)
- else
- col = colors.red
- status = "OFFLINE"
- instruct = ""
- ions = ""
- sleep(0.1)
- end
- sleep(1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement