Quipex icon

Disk/mem/redworks/programs/circuits/Pulse-Former

Quipex | PRO | 04/23/12 11:25:15 AM UTC | 0 ⭐ | 248 👁️ | Never ⏰ | []
text |

600 B

|

None

|

0 👍

/

0 👎

--1
--1
--0
input = {}
output = {}
extra = {}
input[1] = "left"
output[1] = "back"
 -- Pulse Former
-- Created by: FuzzyPurp
 local rRunning = true
term.clear()
term.setCursorPos(1,2)
print("Pulse Former is now running.")
print("Input(s): " .. input[1] .. ".")
print("Output(s): " .. output[1] .. ".")
print("\nHold Control+T to terminate.")
 while rRunning do
  sleep(0.1)
   local rEvent, param = os.pullEvent()
  if rEvent == "redstone" then
    if rs.getInput(input[1]) then
      rs.setOutput(output[1], true)
      sleep(0.2)
      rs.setOutput(output[1], false)
    end
  end
end

Comments