Some questions on some code of storm and delay
Posted: Fri Dec 16, 2016 3:36 pm
this code i got from lee for my dc pumps to run dcpumps for 5mins after feed then after 5mins starts delay relay and not sure what the code is all saying i dont belive i need the high float part? Its for return pump
and if i switch from feed to wc and/or back to exit mode the delayed relay stays in effect i would like it if i hit exit mode to clear the delay relay
and in the storm cloud code the 0 in DaylightPWMValue2,0,180 is that the minimum % it flashes or dims to? Im havving issue with it changing led % to low i want to limit how low dims for flashes and clouds its making mg update led code turn the relays for the leds off
Code: Select all
void DelayedOnFeedMode(byte relay) {
static unsigned long startTime=now();
if ( (startTime==LastStart || ReefAngel.DisplayedMenu==WATERCHANGE_MODE) && ReefAngel.HighATO.IsActive()) {
ReefAngel.Relay.On(relay);
} else {
ReefAngel.Relay.DelayedOn(relay);
}
}
and in the storm cloud code the 0 in DaylightPWMValue2,0,180 is that the minimum % it flashes or dims to? Im havving issue with it changing led % to low i want to limit how low dims for flashes and clouds its making mg update led code turn the relays for the leds off
Code: Select all
//is it time for cloud yet?
if (NumMins(hour(),minute())>=cloudstart && NumMins(hour(),minute())<(cloudstart+cloudduration))
{
// Increase Blue channel first for better effect and to compensate for drop in Whites
ActinicPWMValue1=ReversePWMSlopeHighRes(cloudstart,cloudstart+cloudduration,ActinicPWMValue1,ActinicPWMValue1+DaylightPWMValue0,180);
ActinicPWMValue3=ReversePWMSlopeHighRes(cloudstart,cloudstart+cloudduration,ActinicPWMValue3,ActinicPWMValue3+DaylightPWMValue2,180);
DaylightPWMValue0=ReversePWMSlopeHighRes(cloudstart,cloudstart+cloudduration,DaylightPWMValue0,0,180);
DaylightPWMValue2=ReversePWMSlopeHighRes(cloudstart,cloudstart+cloudduration,DaylightPWMValue2,0,180);
if (chooseLightning)