Page 1 of 1

DC pump class code for original wp40 W1 setting?

Posted: Thu Oct 24, 2013 10:57 am
by DavidinGA
This has probably been address somewhere but all I could find via search was how to set up the wp40 to mimic it's original W1 setting using older code (someone said it doesn't work with the new dc pump class code).

I have two wp40 (one of each end of my tank) how could I code them to mimic W1 and work in harmony (not fight each other but work inline with the right timing of the wave)?

Thanks.

Re: DC pump class code for original wp40 W1 setting?

Posted: Thu Oct 24, 2013 12:07 pm
by Sacohen
This is the code for the older mode. I don't see why it wouldn't work for the DCPump class.

Code: Select all

ReefAngel.PWM.SetDaylight(millis()%1200>800?80:0);
ReefAngel.PWM.SetActinic(millis()%1200<400?0:80);
You would obviously have to change it to use the DCPump class rather than the PWM.SetDaylight and PWM.SetActinic.

Re: DC pump class code for original wp40 W1 setting?

Posted: Thu Oct 24, 2013 12:10 pm
by lnevo
Because its not part of the builtin modes. You can put an if we're in custom mode use that..code to do it, but its not a part of dcpump