.
This commit is contained in:
parent
3b80547458
commit
846dac82fe
@ -274,7 +274,7 @@ while true do
|
||||
term.setBackgroundColor(colors.black)
|
||||
term.clear()
|
||||
term.setCursorPos(1,1)
|
||||
break
|
||||
os.reboot()
|
||||
end
|
||||
elseif events[3] >= 39 and events[3] <= 43 then
|
||||
if events[4] >= 7 and events[4] <= 9 then
|
||||
|
||||
@ -45,8 +45,11 @@ end
|
||||
function AlarmOff()
|
||||
lightSystem("off", colors.red)
|
||||
end
|
||||
function AllOn()
|
||||
lightSystem("on", 65407)
|
||||
end
|
||||
function AllOff()
|
||||
lightSystem("off", 65535)
|
||||
lightSystem("off", 65407)
|
||||
end
|
||||
function LightsBack()
|
||||
inLightsMenu = false
|
||||
@ -101,8 +104,9 @@ lightsMenu={
|
||||
[4]= { text="Orange Off", handler=OrangeOff },
|
||||
[5]= { text="Alarm On", handler=AlarmOn },
|
||||
[6]= { text="Alarm Off", handler=AlarmOff },
|
||||
[7]= { text="All Off", handler=AllOff },
|
||||
[8]= { text="Back", handler=LightsBack }
|
||||
[7]= { text="All On", handler=AllOn },
|
||||
[8]= { text="All Off", handler=AllOff },
|
||||
[9]= { text="Back", handler=LightsBack }
|
||||
}
|
||||
|
||||
--[[Printing Methods]]--
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user