362902415h
发表于 2020-4-8 17:46
itfangli 发表于 2020-4-7 21:57
示列里就有的吧,你找找看
上电瞬间,io口有一个输出高电平抖动信号,怎么消除
chuanping87
发表于 2020-4-9 10:53
Arduino:1.8.9 (Windows 10), 开发板:"Generic ESP8266 Module, 80 MHz, Flash, Disabled, ck, 26 MHz, 40MHz, DOUT (compatible), 512K (no SPIFFS), 2, v2 Lower Memory, Disabled, None, Only Sketch, 115200"
In file included from C:\Users\chuanping83\Documents\Arduino\libraries\Blinker\src/BlinkerESPMQTT.h:10:0,
from C:\Users\chuanping83\Documents\Arduino\libraries\Blinker\src/Blinker.h:36,
from C:\Users\chuanping83\Desktop\智能四路插座-高电平开\xacz\xacz.ino:4:
C:\Users\chuanping83\Documents\Arduino\libraries\Blinker\src/Adapters/BlinkerMQTT.h: In member function 'virtual char* BlinkerMQTT::lastRead()':
C:\Users\chuanping83\Documents\Arduino\libraries\Blinker\src/Adapters/BlinkerMQTT.h:683:17: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
else return "";
^
In file included from C:\Users\chuanping83\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h:82:0,
from C:\Users\chuanping83\Documents\Arduino\libraries\Blinker\src/BlinkerESPMQTT.h:11,
from C:\Users\chuanping83\Documents\Arduino\libraries\Blinker\src/Blinker.h:36,
from C:\Users\chuanping83\Desktop\智能四路插座-高电平开\xacz\xacz.ino:4:
C:\Users\chuanping83\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApiBase.h: In member function 'char* BlinkerBridge_key::getName()':
C:\Users\chuanping83\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApiBase.h:194:29: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
else return "false";
^
In file included from C:\Users\chuanping83\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h:83:0,
from C:\Users\chuanping83\Documents\Arduino\libraries\Blinker\src/BlinkerESPMQTT.h:11,
from C:\Users\chuanping83\Documents\Arduino\libraries\Blinker\src/Blinker.h:36,
from C:\Users\chuanping83\Desktop\智能四路插座-高电平开\xacz\xacz.ino:4:
C:\Users\chuanping83\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerProtocol.h: In member function 'char* BlinkerProtocol::deviceName()':
C:\Users\chuanping83\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerProtocol.h:97:86: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
char * deviceName() { if (isInit) return conn->deviceName(); else return ""; }
^
C:\Users\chuanping83\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerProtocol.h: In member function 'char* BlinkerProtocol::authKey()':
C:\Users\chuanping83\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerProtocol.h:98:83: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
char * authKey() { if (isInit) return conn->authKey(); else return "";}
^
C:\Users\chuanping83\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerProtocol.h: In member function 'char* BlinkerProtocol::dataParse()':
C:\Users\chuanping83\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerProtocol.h:234:86: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
char* dataParse() { if (canParse) return conn->lastRead(); else return ""; }
^
In file included from C:\Users\chuanping83\Documents\Arduino\libraries\Blinker\src/BlinkerESPMQTT.h:11:0,
from C:\Users\chuanping83\Documents\Arduino\libraries\Blinker\src/Blinker.h:36,
from C:\Users\chuanping83\Desktop\智能四路插座-高电平开\xacz\xacz.ino:4:
C:\Users\chuanping83\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h: At global scope:
C:\Users\chuanping83\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h:775:97: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
BlinkerWidgets_string _BUILTIN_SWITCH = BlinkerWidgets_string(BLINKER_CMD_BUILTIN_SWITCH);
^
C:\Users\chuanping83\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h: In member function 'char* BlinkerApi::bridgeKey(uint8_t)':
C:\Users\chuanping83\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h:6362:21: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
else return "";
^
C:\Users\chuanping83\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h: In member function 'char* BlinkerApi::bridgeName(uint8_t)':
C:\Users\chuanping83\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h:6369:21: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
else return "false";
^
C:\Users\chuanping83\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h: In member function 'char* BlinkerApi::widgetName_str(uint8_t)':
C:\Users\chuanping83\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h:6994:17: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
else return "";
^
C:\Users\chuanping83\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h: In member function 'char* BlinkerApi::widgetName_rgb(uint8_t)':
C:\Users\chuanping83\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h:7008:17: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
else return "";
^
C:\Users\chuanping83\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h: In member function 'char* BlinkerApi::widgetName_int(uint8_t)':
C:\Users\chuanping83\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h:7014:17: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
else return "";
^
C:\Users\chuanping83\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h: In member function 'char* BlinkerApi::widgetName_tab(uint8_t)':
C:\Users\chuanping83\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h:7020:17: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
else return "";
^
C:\Users\chuanping83\Desktop\智能四路插座-高电平开\xacz\xacz.ino: At global scope:
C:\Users\chuanping83\Desktop\智能四路插座-高电平开\xacz\xacz.ino:29:27: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
C:\Users\chuanping83\Desktop\智能四路插座-高电平开\xacz\xacz.ino:30:27: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
C:\Users\chuanping83\Desktop\智能四路插座-高电平开\xacz\xacz.ino:31:27: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
C:\Users\chuanping83\Desktop\智能四路插座-高电平开\xacz\xacz.ino:32:27: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
C:\Users\chuanping83\Desktop\智能四路插座-高电平开\xacz\xacz.ino: In function 'void miotPowerState(const String&, uint8_t)':
xacz:5:17: error: 'D6' was not declared in this scope
C:\Users\chuanping83\Desktop\智能四路插座-高电平开\xacz\xacz.ino:118:12: note: in expansion of macro 'Socket1'
xacz:6:17: error: 'D7' was not declared in this scope
C:\Users\chuanping83\Desktop\智能四路插座-高电平开\xacz\xacz.ino:121:12: note: in expansion of macro 'Socket2'
xacz:7:17: error: 'D0' was not declared in this scope
C:\Users\chuanping83\Desktop\智能四路插座-高电平开\xacz\xacz.ino:124:12: note: in expansion of macro 'Socket3'
xacz:8:17: error: 'D5' was not declared in this scope
C:\Users\chuanping83\Desktop\智能四路插座-高电平开\xacz\xacz.ino:127:12: note: in expansion of macro 'Socket4'
xacz:5:17: error: 'D6' was not declared in this scope
C:\Users\chuanping83\Desktop\智能四路插座-高电平开\xacz\xacz.ino:135:20: note: in expansion of macro 'Socket1'
xacz:6:17: error: 'D7' was not declared in this scope
C:\Users\chuanping83\Desktop\智能四路插座-高电平开\xacz\xacz.ino:136:20: note: in expansion of macro 'Socket2'
xacz:7:17: error: 'D0' was not declared in this scope
C:\Users\chuanping83\Desktop\智能四路插座-高电平开\xacz\xacz.ino:137:20: note: in expansion of macro 'Socket3'
xacz:8:17: error: 'D5' was not declared in this scope
C:\Users\chuanping83\Desktop\智能四路插座-高电平开\xacz\xacz.ino:138:20: note: in expansion of macro 'Socket4'
xacz:5:17: error: 'D6' was not declared in this scope
C:\Users\chuanping83\Desktop\智能四路插座-高电平开\xacz\xacz.ino:153:20: note: in expansion of macro 'Socket1'
xacz:6:17: error: 'D7' was not declared in this scope
C:\Users\chuanping83\Desktop\智能四路插座-高电平开\xacz\xacz.ino:154:20: note: in expansion of macro 'Socket2'
xacz:7:17: error: 'D0' was not declared in this scope
C:\Users\chuanping83\Desktop\智能四路插座-高电平开\xacz\xacz.ino:155:20: note: in expansion of macro 'Socket3'
xacz:8:17: error: 'D5' was not declared in this scope
C:\Users\chuanping83\Desktop\智能四路插座-高电平开\xacz\xacz.ino:156:20: note: in expansion of macro 'Socket4'
C:\Users\chuanping83\Desktop\智能四路插座-高电平开\xacz\xacz.ino: In function 'void button1_callback(const String&)':
xacz:5:17: error: 'D6' was not declared in this scope
C:\Users\chuanping83\Desktop\智能四路插座-高电平开\xacz\xacz.ino:174:18: note: in expansion of macro 'Socket1'
xacz:5:17: error: 'D6' was not declared in this scope
C:\Users\chuanping83\Desktop\智能四路插座-高电平开\xacz\xacz.ino:179:18: note: in expansion of macro 'Socket1'
C:\Users\chuanping83\Desktop\智能四路插座-高电平开\xacz\xacz.ino: In function 'void button2_callback(const String&)':
xacz:6:17: error: 'D7' was not declared in this scope
C:\Users\chuanping83\Desktop\智能四路插座-高电平开\xacz\xacz.ino:188:18: note: in expansion of macro 'Socket2'
xacz:6:17: error: 'D7' was not declared in this scope
C:\Users\chuanping83\Desktop\智能四路插座-高电平开\xacz\xacz.ino:193:18: note: in expansion of macro 'Socket2'
C:\Users\chuanping83\Desktop\智能四路插座-高电平开\xacz\xacz.ino: In function 'void button3_callback(const String&)':
xacz:7:17: error: 'D0' was not declared in this scope
C:\Users\chuanping83\Desktop\智能四路插座-高电平开\xacz\xacz.ino:202:18: note: in expansion of macro 'Socket3'
xacz:7:17: error: 'D0' was not declared in this scope
C:\Users\chuanping83\Desktop\智能四路插座-高电平开\xacz\xacz.ino:207:18: note: in expansion of macro 'Socket3'
C:\Users\chuanping83\Desktop\智能四路插座-高电平开\xacz\xacz.ino: In function 'void button4_callback(const String&)':
xacz:8:17: error: 'D5' was not declared in this scope
C:\Users\chuanping83\Desktop\智能四路插座-高电平开\xacz\xacz.ino:216:18: note: in expansion of macro 'Socket4'
xacz:8:17: error: 'D5' was not declared in this scope
C:\Users\chuanping83\Desktop\智能四路插座-高电平开\xacz\xacz.ino:221:18: note: in expansion of macro 'Socket4'
C:\Users\chuanping83\Desktop\智能四路插座-高电平开\xacz\xacz.ino: In function 'void sdms()':
xacz:5:17: error: 'D6' was not declared in this scope
C:\Users\chuanping83\Desktop\智能四路插座-高电平开\xacz\xacz.ino:232:19: note: in expansion of macro 'Socket1'
xacz:5:17: error: 'D6' was not declared in this scope
C:\Users\chuanping83\Desktop\智能四路插座-高电平开\xacz\xacz.ino:242:19: note: in expansion of macro 'Socket1'
xacz:6:17: error: 'D7' was not declared in this scope
C:\Users\chuanping83\Desktop\智能四路插座-高电平开\xacz\xacz.ino:253:19: note: in expansion of macro 'Socket2'
xacz:6:17: error: 'D7' was not declared in this scope
C:\Users\chuanping83\Desktop\智能四路插座-高电平开\xacz\xacz.ino:263:19: note: in expansion of macro 'Socket2'
xacz:7:17: error: 'D0' was not declared in this scope
C:\Users\chuanping83\Desktop\智能四路插座-高电平开\xacz\xacz.ino:275:19: note: in expansion of macro 'Socket3'
xacz:7:17: error: 'D0' was not declared in this scope
C:\Users\chuanping83\Desktop\智能四路插座-高电平开\xacz\xacz.ino:285:19: note: in expansion of macro 'Socket3'
xacz:8:17: error: 'D5' was not declared in this scope
C:\Users\chuanping83\Desktop\智能四路插座-高电平开\xacz\xacz.ino:297:19: note: in expansion of macro 'Socket4'
xacz:8:17: error: 'D5' was not declared in this scope
C:\Users\chuanping83\Desktop\智能四路插座-高电平开\xacz\xacz.ino:307:19: note: in expansion of macro 'Socket4'
C:\Users\chuanping83\Desktop\智能四路插座-高电平开\xacz\xacz.ino: In function 'void setup()':
xacz:5:17: error: 'D6' was not declared in this scope
C:\Users\chuanping83\Desktop\智能四路插座-高电平开\xacz\xacz.ino:332:11: note: in expansion of macro 'Socket1'
xacz:6:17: error: 'D7' was not declared in this scope
C:\Users\chuanping83\Desktop\智能四路插座-高电平开\xacz\xacz.ino:335:11: note: in expansion of macro 'Socket2'
xacz:7:17: error: 'D0' was not declared in this scope
C:\Users\chuanping83\Desktop\智能四路插座-高电平开\xacz\xacz.ino:338:11: note: in expansion of macro 'Socket3'
xacz:8:17: error: 'D5' was not declared in this scope
C:\Users\chuanping83\Desktop\智能四路插座-高电平开\xacz\xacz.ino:341:11: note: in expansion of macro 'Socket4'
exit status 1
'D6' was not declared in this scope
编译错误,这是什么原因
itfangli
发表于 2020-4-9 17:21
chuanping87 发表于 2020-4-9 10:53
Arduino:1.8.9 (Windows 10), 开发板:"Generic ESP8266 Module, 80 MHz, Flash, Disabled, ck, 26 MHz, 40 ...
开发版选D1或8266 12的
itfangli
发表于 2020-4-9 17:24
362902415h 发表于 2020-4-8 17:46
上电瞬间,io口有一个输出高电平抖动信号,怎么消除
输出口不稳定吗?程序没问题的话从供电查,或者先上电容看看。你说的不够详细
810986815
发表于 2020-12-21 15:44
哪位谁给个代码