Added setPowerState event to EventGate brick
This commit is contained in:
9
bricks/special/EventGate-input.lua
Normal file
9
bricks/special/EventGate-input.lua
Normal file
@@ -0,0 +1,9 @@
|
||||
--[[
|
||||
2019-04-17
|
||||
Ideally the gate should ignore event set power if its input is connected to a wiregroup.
|
||||
However I don't know how to do that right now so I'm going to leave it for later
|
||||
]]
|
||||
|
||||
return function(gate, argv)
|
||||
gate.ports[2]:setstate(toboolean(argv[1]))
|
||||
end
|
||||
Reference in New Issue
Block a user