Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mon = peripheral.wrap("back")
- mon.clear()
- mon.setTextScale(1)
- table = {}
- function monPrint (table)
- mon.setTextScale(1)
- mon.clear()
- for i=1,4 do
- mon.setCursorPos(1,i)
- if table[i] == "true" then
- mon.write("Reaktor ".. i.. " ON")
- else
- mon.write("Reaktor ".. i.. " OFF")
- end
- end
- end
- while true do
- if rs.testBundledInput("left", colors.red) then
- table[1] = "false"
- elseif rs.testBundledInput("left", colors.red) == false then
- table[1] = "true"
- end
- if rs.testBundledInput("left", colors.green) then
- table[2] = "false"
- elseif rs.testBundledInput("left", colors.greem) == false then
- table[2] = "true"
- end
- if rs.testBundledInput("left", colors.yellow) then
- table[3] = "false"
- elseif rs.testBundledInput("left", colors.yellow) == false then
- table[3] = "true"
- end
- if rs.testBundledInput("left", colors.blue) then
- table[4] = "false"
- elseif rs.testBundledInput("left", colors.blue) == false then
- table[4] = "true"
- end
- if rs.testBundledInput("left", colors.black) then
- mon.clear()
- mon.setCursorPos(1,1)
- mon.setTextScale(2)
- mon.write(" PRZEGRZANIE!!!")
- end
- if rs.testBundledInput("left", colors.lightGreen) then
- mon.clear()
- mon.setCursorPos(1,1)
- mon.setTextScale(2)
- mon.write("WYMIANA URANU")
- end
- sleep(0.1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement