-
Notifications
You must be signed in to change notification settings - Fork 0
/
Bot.ino
42 lines (36 loc) · 837 Bytes
/
Bot.ino
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#define BLYNK_PRINT Serial
#include<ESP8266WiFi.h>
#include<BlynkSimpleEsp8266.h>
char auth[] = ""; //authentication code
//your WiFi credentials
//set password to "" for open networks
char ssid[] = "tejeswar";
char pass[] = "teju12345";
#define m1 D0;
#define m2 D1;
#define m3 D2;
#define m4 D3;
#define m5 D4;
void setup() {
// put your setup code here, to run once:
Blynk.begin(auth, ssid, pass);
pinMode(m1,OUTPUT);
pinMode(m2,OUTPUT);
pinMode(m3,OUTPUT);
pinMode(m4,OUTPUT);
pinMode(m5,OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
digitalWrite(D0,LOW);
digitalWrite(D1,LOW);
digitalWrite(D2,LOW);
digitalWrite(D3,LOW);
digitalWrite(D4,LOW);
digitalWrite(D0,HIGH);
digitalWrite(D1,HIGH);
digitalWrite(D2,HIGH);
digitalWrite(D3,HIGH);
digitalWrite(D4,HIGH);
Blynk.run();
}