Manual iris control
This commit is contained in:
@ -54,12 +54,17 @@ function display.drawIrisStatus()
|
||||
local irisState = utils.getIrisState()
|
||||
if irisState == "OPEN" then
|
||||
mon.setTextColor(colors.green)
|
||||
mon.write("TOGGLE IRIS ")
|
||||
elseif irisState == "CLOSED" then
|
||||
mon.setTextColor(colors.red)
|
||||
mon.write("TOGGLE IRIS ")
|
||||
elseif irisState == "MOVING" then
|
||||
mon.setTextColor(colors.gray)
|
||||
mon.write("IRIS MOVING ")
|
||||
else
|
||||
mon.setTextColor(colors.gray)
|
||||
mon.write("IRIS: " .. irisState .. " ")
|
||||
end
|
||||
mon.write("IRIS: " .. irisState .. " ")
|
||||
mon.setTextColor(colors.white)
|
||||
if irisState == "MOVING" then
|
||||
sleep(0.1)
|
||||
@ -194,6 +199,8 @@ function display.showIncoming(addressName, addressString, allowed, reason)
|
||||
mon.setCursorPos(1, 7)
|
||||
mon.write(addressString)
|
||||
end
|
||||
|
||||
display.drawIrisStatus()
|
||||
end
|
||||
|
||||
function display.showEntity(entityType, entityName, allowed)
|
||||
|
||||
Reference in New Issue
Block a user