Giới thiệu sản phẩm
#include<WiFi.h> // Khai bao thư viện wifi
#include<BlynkSimpleEsp32.h>
char auth[] = "Bmy4ULBqKsWtaTcCS3e_3PvrkDvkNB7Q";
char ssid[] = "TEKY OFFICE";
char pass[] = "Teky@2018";
int sensorPin = 34;
void setup() {
Blynk.begin(auth, ssid, pass, "blynk-server.com",8080);
pinMode(14,OUTPUT);
Serial.begin(9600);
}
void loop() {
Blynk.run();
int lightValue = analogRead(33)/4;
Serial.println(lightValue);
Blynk.virtualWrite(V5, lightValue);
delay(1000);
}
BLYNK_WRITE(V1) {
int pinValue = param.asInt();
digitalWrite(14,pinValue);
}
#include<BlynkSimpleEsp32.h>
char auth[] = "Bmy4ULBqKsWtaTcCS3e_3PvrkDvkNB7Q";
char ssid[] = "TEKY OFFICE";
char pass[] = "Teky@2018";
int sensorPin = 34;
void setup() {
Blynk.begin(auth, ssid, pass, "blynk-server.com",8080);
pinMode(14,OUTPUT);
Serial.begin(9600);
}
void loop() {
Blynk.run();
int lightValue = analogRead(33)/4;
Serial.println(lightValue);
Blynk.virtualWrite(V5, lightValue);
delay(1000);
}
BLYNK_WRITE(V1) {
int pinValue = param.asInt();
digitalWrite(14,pinValue);
}
Hình ảnh sản phẩm
Hãy bình luận để nhặt 100 thóc nhé
Sản phẩm cùng tác giả
Sản phẩm liên quan
Không có sản phẩm nào
G
Đăng nhập để tham gia bình luận
Y
Đăng nhập để tham gia bình luận
G
Đăng nhập để tham gia bình luận
G
Đăng nhập để tham gia bình luận
V
Đăng nhập để tham gia bình luận
Đăng nhập để tham gia bình luận