Something(s) didn't go quite right though.
Once I uploaded to the RA* via the wizard my lights began shutting off every couple/few minutes or so; it is shutting the power off on each outlet at the relay box. It is not happening as often now, maybe once every half hour now.
In the mornings, the lights that are controlled by this part of my code, the 16 channel expansion, now are on early in the morning at a very low percentage when they shouldn't be on at all. It took me a minute to post this as I did all this a few days ago... life happened.

Code: Select all
for (int z=0;z<6;z++)
{
ReefAngel.PWM.Set16ChannelRaw( z , PWMSlopeHighRes(12,27,21,27,3,LEDgroupslvl,30,0) );
}
if (millis() - last16channelcheck > 1000 && ReefAngel.Network.IsMQTTConnected())
{
last16channelcheck = millis();
for (byte a = 0; a < 6; a++) // a < 16 has been Modified for 6ch Dimming module
{
if (ReefAngel.PWM.SIXTEENChExpansionChannel[a] != OldPercentage16[a])
{
if (a<10)
sprintf(buffer, "%s0%d:%d", "PWM16E", a, ReefAngel.PWM.SIXTEENChExpansionChannel[a]);
else
sprintf(buffer, "%s%d:%d", "PWM16E", a, ReefAngel.PWM.SIXTEENChExpansionChannel[a]);
Serial.println(buffer);
ReefAngel.Network.CloudPublish(buffer);
OldPercentage16[a] = ReefAngel.PWM.SIXTEENChExpansionChannel[a];
}
if (ReefAngel.PWM.SIXTEENChExpansionChannelOverride[a] != OldPercentage16Override[a])
{
if (a<10)
sprintf(buffer, "%s0%d:%d", "PWM16EO", a, ReefAngel.PWM.SIXTEENChExpansionChannelOverride[a]);
else
sprintf(buffer, "%s%d:%d", "PWM16EO", a, ReefAngel.PWM.SIXTEENChExpansionChannelOverride[a]);
Serial.println(buffer);
ReefAngel.Network.CloudPublish(buffer);
OldPercentage16Override[a] = ReefAngel.PWM.SIXTEENChExpansionChannelOverride[a];
}
}
}
For the RA* custom expansion screen, where the values used to show 0.0 now only show 0 for all of the custom expansion values. As in, there is no longer a decimal point and zero after it and there is not a reading of the salinity.