What I want to do is use the variable from the menu setting for PWM as the max value in the
ReefAngel.PWM.SetDaylight( PWMSlope(13,0,22,05,11,20,20,11) );
ReefAngel.PWM.SetActinic( PWMSlope(12,10,22,45,11,30,30,11) );
functions..
as in:
ReefAngel.PWM.SetDaylight( PWMSlope(13,0,22,05,11,menu_var1,menu_var1,11) );
ReefAngel.PWM.SetActinic( PWMSlope(12,10,22,45,11,menu_var2,menu_var2,11) );
Is this somehow possible? Thanks!
Need coding help
Re: Need coding help
Unfortunately, I don't.. Is there some other way?
Re: Need coding help
We will need to come up with a work around, is it ok?
We can set the end of slope with the PWM menu and the duration with the wavemaker menu.
Would that work for you?
We can set the end of slope with the PWM menu and the duration with the wavemaker menu.
Would that work for you?
Roberto.
Re: Need coding help
A work around would do just fine, and all I need to be able to change is the end of slope, I am upping the intensity by 1% a week and it's already getting old reprogramming it every week.
Re: Need coding help
Oh, if you only need to change the end of slope, there is already something for that.
Add this to your setup():
Then use this function:
You should be able to change the LED PWM settings through the menu now.
Add this to your setup():
Code: Select all
ReefAngel.AddStandardMenu();
Code: Select all
ReefAngel.PWM.SetDaylight( PWMSlope(13,0,22,05,11,InternalMemory.LEDPWMDaylight_read(),20,11) );
ReefAngel.PWM.SetActinic( PWMSlope(12,10,22,45,11,InternalMemory.LEDPWMActinic_read(),30,11) );
Roberto.
Need coding help
Or you could look at how I am doing coral acclimation schedules...
Re: Need coding help
Thanks Roberto!
Inevo: Looking now!
Inevo: Looking now!