Page 1 of 1

toggling lights

Posted: Mon Jan 21, 2013 8:20 pm
by rossbryant1956
saw this line of code:

Code: Select all

// Ports toggled when Lights On / Off menu entry selected
    ReefAngel.LightsOnPorts = 0;
    ReefAngel.LightsOnPortsE[0] = Port1Bit | Port2Bit | Port3Bit | Port4Bit; //Center+Front+BackT5,RSMLED
What does this first line say; that there are no lights on the first relay block, they are all on the second relay?

My code looks like this:

Code: Select all

ReefAngel.LightsOnPorts = Port1Bit | Port2Bit; // Toggle DT Lights
    ReefAngel.LightsOnPortsE[0] = Port3Bit | Port4Bit; // Toggle GT Lights
because I have lights on both relay blocks. Is this right?

Re: toggling lights

Posted: Mon Jan 21, 2013 8:25 pm
by rimai
Yes :)