Coding Third Jebao on Dim Exp

Do you have a question on how to do something.
Ask in here.
Post Reply
pisanoal1
Posts: 16
Joined: Sun Nov 30, 2014 3:17 pm

Coding Third Jebao on Dim Exp

Post 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!
User avatar
cosmith71
Posts: 1437
Joined: Fri Mar 29, 2013 3:51 pm
Location: Oklahoma City

Re: Coding Third Jebao on Dim Exp

Post 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
pisanoal1
Posts: 16
Joined: Sun Nov 30, 2014 3:17 pm

Re: Coding Third Jebao on Dim Exp

Post by pisanoal1 »

Awesome! Thank you very much. I was so close.. haha
Post Reply