Ναι, δούλεψε!
void AlarmPwrLight1_On()
{
digitalWrite(pwrLight1Pin, HIGH);
globalPower.pwrLight1=1;
if (dispScreen==1) myFiles.load(178, 121, 24, 24, pwrLightIconS[globalPower.pwrLight1]);
}
void AlarmPwrLight1_Off()
{
digitalWrite(pwrLight1Pin, LOW);
globalPower.pwrLight1 = 0;
Αν αντιστρέψω τις τιμές αυτές, οπλίζει σωστά το ρελέ.
Ευχαριστώ!
|