I'm using the code in http://forum.reefangel.com/viewtopic.php?f=15&t=1401, and I'm still testing. I placed ra dimmable moonlight in actinic pwm port, but it is always on.
Any suggestion?
Stephy
Moonlight always on
-
stephy
- Posts: 26
- Joined: Sat Jun 02, 2012 1:36 am
- Location: Livorno (Italy)
Moonlight always on
Stephy

-
rimai
- Posts: 12857
- Joined: Fri Mar 18, 2011 6:47 pm
Re: Moonlight always on
If you want to turn them off, you need to do the same thing as you did for the RF.
Code: Select all
if (hour>=20 || hour<10)
ReefAngel.PWM.SetActinic( MoonPhase() );
else
ReefAngel.PWM.SetActinic( 0 );
Roberto.
-
stephy
- Posts: 26
- Joined: Sat Jun 02, 2012 1:36 am
- Location: Livorno (Italy)
Re: Moonlight always on
Added, thanks.rimai wrote:If you want to turn them off, you need to do the same thing as you did for the RF.Code: Select all
if (hour>=20 || hour<10) ReefAngel.PWM.SetActinic( MoonPhase() ); else ReefAngel.PWM.SetActinic( 0 );
Also () :
Code: Select all
if (hour()>=20 || hour()<10)
ReefAngel.PWM.SetActinic( MoonPhase() );
else
ReefAngel.PWM.SetActinic( 0 );
Stephy

-
rimai
- Posts: 12857
- Joined: Fri Mar 18, 2011 6:47 pm