add io brick, misc fixes
This commit is contained in:
9
bricks/outputs/pixel2x2-update.lua
Normal file
9
bricks/outputs/pixel2x2-update.lua
Normal file
@@ -0,0 +1,9 @@
|
||||
|
||||
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
|
||||
Reference in New Issue
Block a user