Hi!
The function is activated only via menu.
It won't work for you unless your setup is exactly like this:
I have explained this functions many times on forum, Take a look at:
viewtopic.php?f=8&t=308viewtopic.php?f=8&t=73If you did your custom function let me see your code.
Also you can add this debug messages on loop after
LOGLN(FreeStack()); to see the status of each sensor and pump.
LOG(F("Sensor 1: "));
LOGLN(myAnalogRead(A0));
LOG(F("Sensor 2: ");
LOGLN(myAnalogRead(A1));
LOG(F("Sensor 3: "));
LOGLN(myAnalogRead(A2));
LOG(F("Sensor 4: "));
LOGLN(myAnalogRead(A3));
LOG(F("Sensor 5: "));
LOGLN(myAnalogRead(A4));
LOG(F("Sensor 6: "));
LOGLN(myAnalogRead(A5));
LOG(F("marcadoriniciotpa: "));
LOGLN(marcadoriniciotpa);
LOG(F("shiftedmillis: "));
LOGLN(shiftedmillis);
LOG(F("Duration for stage: "));
LOG(tempo/60000);
LOGLN(F(" minutes"));
if (PCF8575.digitalRead(bomba1Pin)==HIGH)
{
LOGLN(F("Pump 1: ON"));
}
else
{
LOGLN(F("Pump 1: OFF"));
}
if (PCF8575.digitalRead(bomba2Pin)==HIGH)
{
LOGLN(F("Pump 2: ON"));
}
else
{
LOGLN(F("Pump 2: OFF"));
}
if (PCF8575.digitalRead(bomba3Pin)==HIGH)
{
LOGLN(F("Pump 3: ON"));
}
else
{
LOGLN(F("Pump 3: OFF"));
}
Best regards.