Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function addBundled(s, c)
- rs.setBundledOutput(s, colors.combine(rs.getBundledOutput(s), c))
- end
- function removeBundled(s, c)
- rs.setBundledOutput(s, colors.subtract(rs.getBundledOutput(s), c))
- end
- function main()
- addBundled("back", colors.green) --Start Klaxon
- addBundled("back", colors.yellow) --start pulling down
- sleep(1)
- for i = 1, 8, 1 do --Pulse Door pusher
- addBundled("back", colors.red)
- sleep(3)
- removeBundled("back", colors.red)
- end
- removeBundled("back", colors.yellow) --stop pulling
- sleep(1)
- print("retracting")
- addBundled("back", colors.white) --retract arm
- sleep(10)
- removeBundled("back", colors.white)
- removeBundled("back", colors.green) --stop klaxon
- end
- main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement