I have a button set for pin 5. Pin 5 needs to activate a motor for 5 seconds and then stop. A second pin, pin 16, needs to activate at the same time for the same duration of 5 seconds. I already have everything wired physically so I all I need is the code that will enable me to use Blynk.
I am using the iOS version of Blynk!
I posted the code below that I am currently using on my Arduino.
Thanks again,
Daniel Kitchen
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "1769a0a206b14823b4d61da38ef73e94";
// Your WiFi credentials.
// Set password to "" for open networks.
char ssid[] = "YourNetworkName";
char pass[] = "YourPassword";
void setup()
{
// Debug console
Serial.begin(9600);
Blynk.begin(auth, ssid, pass);
// You can also specify server:
//Blynk.begin(auth, ssid, pass, "blynk-cloud.com", 8442);
//Blynk.begin(auth, ssid, pass, IPAddress(192,168,1,100), 8442);
}
void loop()
{
Blynk.run();
// You can inject your own code or combine it with other sketches.
// Check other examples on how to communicate with Blynk. Remember
// to avoid delay() function!
}
```cpp
void loop()