Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --
- -- Iris control
- --
- -- Usage:
- -- iris
- -- Display iris state
- -- iris open
- -- iris close
- --
- sg = peripheral.wrap("right")
- args = {...}
- function main()
- if #args == 0 then
- print(sg.irisState())
- elseif args[1] == "open" then
- sg.openIris()
- elseif args[1] == "close" then
- sg.closeIris()
- else
- print(args[1] .. " not understood")
- end
- end
- main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement