Page 1 of 1

Coding Third Jebao on Dim Exp

Posted: Fri Jan 02, 2015 11:07 am
by pisanoal1
Hello all,

I'm trying to figure out how to code my third Jebao on a separate schedule from my other two which are using DCPump on sync and anti-sync. The third pump will be using the expansion channel 2, and im trying to figure out how to put on long pulse and short pulse at different times of day. I can write the if>then to change when i want it on which mode, but have had trouble coding the expansion channel to do what i want it to.

Thanks!

Re: Coding Third Jebao on Dim Exp

Posted: Fri Jan 02, 2015 12:54 pm
by cosmith71
You want something like this:

Code: Select all

  ReefAngel.PWM.SetChannel(2,ShortPulseMode(min,max,duration,true));
2 is the channel, put in your min, max, and duration. True is for the sync value (doesn't really do much in this situation, but needed for proper syntax).

LongPulseMode is done the same way.


--Colin

Re: Coding Third Jebao on Dim Exp

Posted: Fri Jan 02, 2015 1:20 pm
by pisanoal1
Awesome! Thank you very much. I was so close.. haha