Functions in the Redstone API:
redstone.getInput( side )
redstone.setOutput( side, b )