ทางร้านขอเป็นข้อความ error ดีกว่าครับ จะได้แก้ไขให้ตรงจุด ไม่เช่นนั้นมันจะพาออกทะเลได้
#include <BlynkSimpleEsp8266.h>
ตรงนี้ครับ
ขอข้อความ error ด้วยครับ ตัวโปรแกรม นี้ ทางร้าน compile ได้ปกติ ครับ
กำลังทำเครื่องให้อาหาร ใช้ESP8266 มันerror ตรง
#include <BlynkSimpleEsp8266.h>
แก้ไงครับ
______________________
#include <Servo.h>
#define BLYNK_PRINT Serial
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
Servo myservo;
char auth[] = "OtTelUfizbltWkD77lzJbB_CsKZryyc9";
char ssid[] = "9arduino";
char pass[] = "tv357911itv";
//int param;
void setup()
{
// Debug console
Serial.begin(9600);
pinMode(D6, OUTPUT);
pinMode(D7, OUTPUT);
digitalWrite(D7, HIGH);
digitalWrite(D6, HIGH);
digitalWrite(D7, LOW);
digitalWrite(D6, HIGH);
myservo.attach(D2);
Blynk.begin(auth, ssid, pass);
}
void loop()
{
digitalWrite(D7, HIGH);
digitalWrite(D6, LOW);
Blynk.run();
}
BLYNK_WRITE(V5) // Button Widget writes to Virtual Pin V5
{
int i = param.asInt();
if(i==1){
Servoon();
}
}
void Servoon() {
int pos = 1;
for (pos = 1; pos <= 60; pos += 1) {
myservo.write(pos); // tell servo to go to position in variable 'pos'
delay(15); // waits 15ms for the servo to reach the position
}
}