-- download at MT.QZX.COM (pulsing-xor.lua) local o = "BD" -- B/D=output - A/C=inputs --local o = "AC" -- A/C=output - B/D=inputs if o == "AC" then if event.iid == "pulse" then port.a = false port.c = false interrupt(1, "repeat") elseif pin.b ~= pin.d then interrupt(1, "pulse") port.a = true port.c = true else port.a = false port.c = false end else if event.iid == "pulse" then port.b = false port.d = false interrupt(1, "repeat") elseif pin.a ~= pin.c then interrupt(1, "pulse") port.b = true port.d = true else port.b = false port.d = false end end