Need help with Code..Using Blynk + Hard coded routine

Hello all,

after a lot of Googling, I still can’t figure this out. I am working on a project where I want to have an automatic routine run while allowing for manual control through the Blynk app. I want to turn off the auto routine when manual mode is turned on through the app. Please take a look and let me know if you have a suggestion.


New_Project_1.ino (3.4 KB) `


This line is wrong : if (digitalRead(trigger == 1)) .

As trigger is set to 3, this condition trigger == 1 is false, so it’s like doing if (digitalRead(0)).

You probably want to do this instead : if (digitalRead(trigger) == HIGH)

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.