Randomizing Wavemakers

Do you have a question on how to do something.
Ask in here.

Posts: 471
Joined: Sat Jan 14, 2012 2:08 pm
Location: Montgomery Village, MD
PostPosted: Mon Oct 10, 2016 5:08 am
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.

Roscoe's Reefs - Starting Over Again:

Building new 29g Nano after landlord went berserk over my 4 75 gallon tanks, Multiple RA's, Water mixing stations, etc. Your help welcomed in remembering all I've forgotten.
User avatar
Posts: 1426
Joined: Fri Mar 29, 2013 3:51 pm
Location: Oklahoma City
PostPosted: Mon Oct 10, 2016 5:59 am
That second bit of code should do it. The second line sets Port6 to the opposite of Port5.

Return to How do I code ...

Who is online

Users browsing this forum: No registered users and 4 guests