added unknown

This commit is contained in:
navid.sassan 2021-04-02 16:38:34 +02:00
parent 3033f5dcdc
commit bafcdb7ff6

View File

@ -57,9 +57,12 @@ function draw_screen()
if redstone_toggle_state == true then if redstone_toggle_state == true then
term.setBackgroundColor(colors.green) term.setBackgroundColor(colors.green)
term.write('On') term.write('On')
else elseif redstone_toggle_state == false then
term.setBackgroundColor(colors.red) term.setBackgroundColor(colors.red)
term.write('Off') term.write('Off')
elseif redstone_toggle_state == nil then
term.setBackgroundColor(colors.purple)
term.write('Unknown')
end end
print() print()
term.setBackgroundColor(colors.black) term.setBackgroundColor(colors.black)