EEPROM地址问题
使用样例Button_WiFi,稍微修改了一下,报如下警告,但是我没有哪个地方去写 EEPROM 呀。程序贴在最后面。esp-01模块
===========================================================
================== Blinker Timer loaded! ==================
Warning!EEPROM address 1536-2431 is used for Blinker Timer!
============= DON'T USE THESE EEPROM ADDRESS! =============
===========================================================
MQTT Connected!
Freeheap: 11520
=======================================================
=========== Blinker Auto Control mode init! ===========
Warning!EEPROM address 0-1279 is used for Auto Control!
=========== DON'T USE THESE EEPROM ADDRESS! ===========
=======================================================
get button state: on
Toggle on!
get button state: off
Toggle off!
程序代码
#define BLINKER_WIFI
#include <Blinker.h>
char auth[] = "**********";
char ssid[] = "****";
char pswd[] = "****";
#define BUTTON_1 "btn-abc"
#define jdq_io 0
BlinkerButton Button1(BUTTON_1);
void button1_callback(const String & state)
{
BLINKER_LOG("get button state: ", state);
if (state == BLINKER_CMD_ON) {
digitalWrite(jdq_io, LOW);
BLINKER_LOG("Toggle on!");
Button1.color("#FF0000");
Button1.text("开");
Button1.print("on");
}
else if (state == BLINKER_CMD_OFF) {
digitalWrite(jdq_io, HIGH);
BLINKER_LOG("Toggle off!");
Button1.color("#FFFF00");
Button1.text("关");
Button1.print("off");
}
}
void setup()
{
Serial.begin(115200);
BLINKER_DEBUG.stream(Serial);
pinMode(jdq_io, OUTPUT);
digitalWrite(jdq_io, LOW);
Blinker.begin(auth, ssid, pswd);
Button1.attach(button1_callback);
}
void loop()
{
Blinker.run();
}
没有报错,他只是提醒你不要去写1536-2431这段地址,他被Blinker Timer用了 Warning不是报错,可以不用管 解决了吗楼主 xiaoman_yy 发表于 2020-3-9 11:09
解决了吗楼主
这不没问题吗? 楼主解决了吗。我的出来这个警告就不会连接wifi了 ly1657813591 发表于 2020-9-7 23:09
楼主解决了吗。我的出来这个警告就不会连接wifi了
这个提示无关,提示不是报错
页:
[1]