Professional Documents
Culture Documents
Go to data stream select new data stream and then digital pin
Then give the name as led and select pin 13 select create
Again select new data stream and give name as fan and select pin 12
Then go to web dashboard
Go to setting to switch 1 and give title led and select 13 and give title fan and select 12 for 2 switch
And then select save
Then go to home and template id ,name and auth token will appear there
Then open ardino folder go to libraries open blynk then scripts then blynk-ser
#include <BlynkSimpleStream.h>
void setup()
{
// Debug console
SwSerial.begin(115200);
// Blynk will work through Serial
// Do not read or write this serial manually in your sketch
Serial.begin(9600);
Blynk.begin(Serial, BLYNK_AUTH_TOKEN);
}
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!
}