Brick_LuaLogic/bricks/outputs/pixel2x2-update.lua
2024-06-22 18:17:21 -06:00

10 lines
184 B
Lua

return function(gate)
Gate.cb(gate,
Gate.getportstate(gate, 1) +
Gate.getportstate(gate, 2)*2 +
Gate.getportstate(gate, 3)*4 +
Gate.getportstate(gate, 4)*8
)
end