Page 1 of 1

Randomizing Wavemakers

Posted: Mon Oct 10, 2016 5:08 am
by rossbryant1956
Found this piece of code:

ReefAngel.Wavemaker( Port5, 90 );
ReefAngel.Relay.Set( Port6, !ReefAngel.Relay.Status( Port5 ) );

But what I'd rather do is this:

ReefAngel.WavemakerRandom(Port5, 60, 100 );
ReefAngel.Relay.Set (Port6, !ReefAngel.Relay.Status(Port5 ) );

So in other words, I like the concept of randomizing, but would like the other power head working in concert with the other. What I don't want is for the two powerheads to be on the same cycle, both firing at the same time.

Thx

Re: Randomizing Wavemakers

Posted: Mon Oct 10, 2016 5:59 am
by cosmith71
That second bit of code should do it. The second line sets Port6 to the opposite of Port5.