mirror of
https://github.com/filiprojek/auto-awning-close.git
synced 2024-11-02 10:32:28 +01:00
update
This commit is contained in:
parent
3d20bd1a78
commit
a983c98b15
@ -156,6 +156,7 @@ void loop()
|
||||
{
|
||||
if(isOpen == false)
|
||||
{
|
||||
Serial.println("cas otevira");
|
||||
relayOn(relay4);
|
||||
}
|
||||
}
|
||||
@ -163,6 +164,7 @@ void loop()
|
||||
{
|
||||
if(isOpen == true)
|
||||
{
|
||||
Serial.println("cas zavira");
|
||||
relayOn(relay1);
|
||||
}
|
||||
}
|
||||
@ -171,13 +173,15 @@ void loop()
|
||||
// rain actions
|
||||
if(digitalRead(rain) != HIGH)
|
||||
{
|
||||
Serial.println("voda zavira");
|
||||
relayOn(relay1, true);
|
||||
}
|
||||
|
||||
// wind actions
|
||||
if (digitalRead(wind) == HIGH)
|
||||
{
|
||||
relayOn(relay1, true);
|
||||
Serial.println("vitr zavira");
|
||||
//relayOn(relay1, true);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user