|
发表于 2019-12-20 15:14:43
|
显示全部楼层
#WiFi芯片版本,型号中带B的为csm64f02_b,不带B的为csm64f02
board_model: esp01_1m
如果将esp01_1m改为csm64f02_b,编译提示找不到相应的类型,默认esp01_1m通过
关于irq_pin那个看上边的网友问答解决了
但是编译到最后又失败了
| |-- <Wire> 1.0
| |-- <ESP8266WiFi> 1.0
| |-- <ESPAsyncTCP> 1.2.0
| | |-- <ESP8266WiFi> 1.0
| |-- <ESP8266mDNS>
| | |-- <ESP8266WiFi> 1.0
Building in release mode
Compiling .pioenvs\dc1_01\src\main.cpp.o
Generating LD script .pioenvs\dc1_01\ld\eagle.app.v6.common.ld
Compiling .pioenvs\dc1_01\lib519\ESP8266WiFi\BearSSLHelpers.cpp.o
src\main.cpp: In function 'void setup()':
src\main.cpp:30:3: error: 'io' has not been declared
io::CAT9554Component *cat9554_hub = App.make_cat9554_component(0x20, 4);
^
src\main.cpp:30:25: error: 'cat9554_hub' was not declared in this scope
io::CAT9554Component *cat9554_hub = App.make_cat9554_component(0x20, 4);
^
src\main.cpp:30:43: error: 'class esphome::Application' has no member named 'mak
e_cat9554_component'
io::CAT9554Component *cat9554_hub = App.make_cat9554_component(0x20, 4);
^
src\main.cpp:63:161: error: 'io' has not been declared
binary_sensor::GPIOBinarySensorComponent *binary_sensor_gpiobinarysensorcompo
nent = App.make_gpio_binary_sensor("dc1_01 key1", cat9554_hub->make_input_pin(0,
io::CAT9554_INPUT, false));
^
src\main.cpp:64:163: error: 'io' has not been declared
binary_sensor::GPIOBinarySensorComponent *binary_sensor_gpiobinarysensorcompo
nent_2 = App.make_gpio_binary_sensor("dc1_01 key2", cat9554_hub->make_input_pin(
1, io::CAT9554_INPUT, false));
^
src\main.cpp:65:163: error: 'io' has not been declared
binary_sensor::GPIOBinarySensorComponent *binary_sensor_gpiobinarysensorcompo
nent_3 = App.make_gpio_binary_sensor("dc1_01 key3", cat9554_hub->make_input_pin(
2, io::CAT9554_INPUT, false));
^
*** [.pioenvs\dc1_01\src\main.cpp.o] Error 1
========================= [FAILED] Took 55.19 seconds =========================
|
|