Just got home, checked my old program. Here is the correct sample code:
local outputSide = "bottom"
-- if you set rs.setBundledOutput( side, 0 ), it will close all colors off.
-- You can name this anything you want
local activeColors = 0
...
if input == "redOn" then
activeColors = colors.combine( activeColors, colors.red )
end
if input == "redOff" then
activeColors = colors.subtract( activeColors, colors.red )
end
if input == "blueOn" then
activeColors = colors.combine( activeColors, colors.blue )
end
if input == "blueOff" then
activeColors = colors.subtract( activeColors, colors.blue )
end
...
-- end of code
rs.setBundledOutput( outputSide, activeColors )
Hope it helped! [: