I'm trying to control 2 funky locomotion frame sliders to move a door using this program :
local component = require("component")
local sides = require("sides")
local rs = component.redstone
local doorOpen = false
local delay = 15
while true do
if rs.getOutput(sides.front) > 0 then
if doorOpen then
print("Closing door")
rs.setOutput(sides.right, 15)
os.sleep(delay)
rs.setOuput(sides.right, 0)
doorOpen = not doorOpen
else
print("Opening door")
rs.setOutput(sides.left, 15)
os.sleep(delay)
rs.setOutput(sides.left, 0)