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.
DC pump class code for original wp40 W1 setting?
-
DavidinGA
- Posts: 83
- Joined: Fri Jun 07, 2013 11:26 am
- Sacohen
- Posts: 1833
- Joined: Sun Apr 21, 2013 6:25 am
- Location: Davie, FL
Re: DC pump class code for original wp40 W1 setting?
This is the code for the older mode. I don't see why it wouldn't work for the DCPump class.
You would obviously have to change it to use the DCPump class rather than the PWM.SetDaylight and PWM.SetActinic.
Code: Select all
ReefAngel.PWM.SetDaylight(millis()%1200>800?80:0);
ReefAngel.PWM.SetActinic(millis()%1200<400?0:80);- lnevo
- Posts: 5422
- Joined: Fri Jul 20, 2012 9:42 am
Re: DC pump class code for original wp40 W1 setting?
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