所以我今天拿到了我的阿迪诺·尤诺。我想通过Wifi (通过Blynk应用程序)控制我的Arduino上的一些继电器。为此,我想使用use 8266-01作为Wifi盾。
唯一的区别是我使用的是Win10。我得到的是:
好的,第一个问题是我不能像教程中所说的那样闪现ESP的固件(从Sun方正那里得到)。下载了最新的固件并用ESP8266Flasher刷新了它。
另一个问题是,当我试图编译第一个教程中的代码时,总是会出现错误:
C:\Users\Chris\Documents\Arduino\libraries\Blynk\examples\Boards_WiFi\ESP8266_Shield\ESP8266_Shield.ino:5:21: fatal error: ESP8266.h: No such file or directory如前所述,我已经安装了所有的库。真的想不出该做什么了。任何帮助都将不胜感激。柏林最好的问候克里斯。要关闭代码,我尝试将代码上载到板( Arduino board或通用ESP8266都不起作用)
//#define BLYNK_DEBUG
#define BLYNK_PRINT Serial // Comment this out to disable prints and save space
#include <ESP8266.h>
#include <BlynkSimpleShieldEsp8266.h>
// Set ESP8266 Serial object
#define EspSerial Serial
ESP8266 wifi(EspSerial);
// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "???";
void setup()
{
Serial.begin(115200); // Set console baud rate
delay(10);
EspSerial.begin(115200); // Set ESP8266 baud rate
delay(10);
Blynk.begin(auth, wifi, "???",
"???");
}
void loop()
{
Blynk.run();
}那个?我交换了我的令牌和数据ofc。
发布于 2017-02-09 17:59:32
https://stackoverflow.com/questions/42143360
复制相似问题