Sorry, but no luck
With version 2.0.0 of Arduino framework, I can compile barely minimum conf (web server, etc.):
esphome:
name: camera-living-room
esp32:
board: esp32dev
framework:
type: arduino
version: 2.0.0
logger:
api:
ota:
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
ap:
ssid: "Camera-Living-Room"
password: "<some password>"
captive_portal:
web_server:
port: 80
But if I append ESP32 Camera component to above configuration:
esp32_camera:
external_clock:
pin: GPIO0
frequency: 20MHz
i2c_pins:
sda: GPIO26
scl: GPIO27
data_pins: [GPIO5, GPIO18, GPIO19, GPIO21, GPIO36, GPIO39, GPIO34, GPIO35]
vsync_pin: GPIO25
href_pin: GPIO23
pixel_clock_pin: GPIO22
power_down_pin: GPIO32
resolution: 640x480
name: Camera Living Room
jpeg_quality: 10
I’m getting compile error:
INFO Reading configuration /config/camera-living-room.yaml...
WARNING The selected Arduino framework version is not the recommended one. If there are connectivity or build issues please remove the manual version.
WARNING The selected Arduino framework version is not the recommended one. If there are connectivity or build issues please remove the manual version.
WARNING GPIO0 is a Strapping PIN and should be avoided.
Attaching external pullup/down resistors to strapping pins can cause unexpected failures.
See https://esphome.io/guides/faq.html#why-am-i-getting-a-warning-about-strapping-pins
INFO Generating C++ source...
INFO Compiling app...
Processing camera-living-room (board: esp32dev; framework: arduino; platform: platformio/espressif32 @ 5.2.0)
--------------------------------------------------------------------------------
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
- toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch3
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
Dependency Graph
|-- AsyncTCP-esphome @ 1.2.2
|-- WiFi @ 2.0.0
|-- FS @ 2.0.0
|-- Update @ 2.0.0
|-- ESPAsyncWebServer-esphome @ 2.1.0
| |-- AsyncTCP-esphome @ 1.2.2
|-- DNSServer @ 2.0.0
|-- ESPmDNS @ 2.0.0
|-- ArduinoJson @ 6.18.5
Compiling .pioenvs/camera-living-room/src/esphome/components/api/api_connection.cpp.o
Compiling .pioenvs/camera-living-room/src/esphome/components/api/api_frame_helper.cpp.o
Compiling .pioenvs/camera-living-room/src/esphome/components/api/api_pb2.cpp.o
Compiling .pioenvs/camera-living-room/src/esphome/components/api/api_pb2_service.cpp.o
Compiling .pioenvs/camera-living-room/src/esphome/components/api/api_server.cpp.o
Compiling .pioenvs/camera-living-room/src/esphome/components/api/list_entities.cpp.o
Compiling .pioenvs/camera-living-room/src/esphome/components/api/proto.cpp.o
Compiling .pioenvs/camera-living-room/src/esphome/components/api/subscribe_state.cpp.o
Compiling .pioenvs/camera-living-room/src/esphome/components/api/user_services.cpp.o
Compiling .pioenvs/camera-living-room/src/esphome/components/captive_portal/captive_portal.cpp.o
Compiling .pioenvs/camera-living-room/src/esphome/components/esp32/core.cpp.o
Compiling .pioenvs/camera-living-room/src/esphome/components/esp32/gpio.cpp.o
Compiling .pioenvs/camera-living-room/src/esphome/components/esp32/preferences.cpp.o
Compiling .pioenvs/camera-living-room/src/esphome/components/esp32_camera/esp32_camera.cpp.o
Compiling .pioenvs/camera-living-room/src/esphome/components/json/json_util.cpp.o
Compiling .pioenvs/camera-living-room/src/esphome/components/logger/logger.cpp.o
Compiling .pioenvs/camera-living-room/src/esphome/components/md5/md5.cpp.o
Compiling .pioenvs/camera-living-room/src/esphome/components/mdns/mdns_component.cpp.o
In file included from src/esphome/components/esp32_camera/esp32_camera.cpp:4:
src/esphome/components/esp32_camera/esp32_camera.cpp: In member function 'virtual void esphome::esp32_camera::ESP32Camera::dump_config()':
src/esphome/components/esp32_camera/esp32_camera.cpp:60:56: error: 'struct camera_config_t' has no member named 'pin_sccb_sda'; did you mean 'pin_sscb_sda'?
ESP_LOGCONFIG(TAG, " I2C Pins: SDA:%d SCL:%d", conf.pin_sccb_sda, conf.pin_sccb_scl);
^~~~~~~~~~~~
src/esphome/core/log.h:94:90: note: in definition of macro 'esph_log_config'
esp_log_printf_(ESPHOME_LOG_LEVEL_CONFIG, tag, __LINE__, ESPHOME_LOG_FORMAT(format), ##__VA_ARGS__)
^~~~~~~~~~~
src/esphome/components/esp32_camera/esp32_camera.cpp:60:3: note: in expansion of macro 'ESP_LOGCONFIG'
ESP_LOGCONFIG(TAG, " I2C Pins: SDA:%d SCL:%d", conf.pin_sccb_sda, conf.pin_sccb_scl);
^~~~~~~~~~~~~
src/esphome/components/esp32_camera/esp32_camera.cpp:60:75: error: 'struct camera_config_t' has no member named 'pin_sccb_scl'; did you mean 'pin_sscb_scl'?
ESP_LOGCONFIG(TAG, " I2C Pins: SDA:%d SCL:%d", conf.pin_sccb_sda, conf.pin_sccb_scl);
^~~~~~~~~~~~
src/esphome/core/log.h:94:90: note: in definition of macro 'esph_log_config'
esp_log_printf_(ESPHOME_LOG_LEVEL_CONFIG, tag, __LINE__, ESPHOME_LOG_FORMAT(format), ##__VA_ARGS__)
^~~~~~~~~~~
src/esphome/components/esp32_camera/esp32_camera.cpp:60:3: note: in expansion of macro 'ESP_LOGCONFIG'
ESP_LOGCONFIG(TAG, " I2C Pins: SDA:%d SCL:%d", conf.pin_sccb_sda, conf.pin_sccb_scl);
^~~~~~~~~~~~~
src/esphome/components/esp32_camera/esp32_camera.cpp: In member function 'void esphome::esp32_camera::ESP32Camera::set_i2c_pins(uint8_t, uint8_t)':
src/esphome/components/esp32_camera/esp32_camera.cpp:220:17: error: 'struct camera_config_t' has no member named 'pin_sccb_sda'; did you mean 'pin_sscb_sda'?
this->config_.pin_sccb_sda = sda;
^~~~~~~~~~~~
pin_sscb_sda
src/esphome/components/esp32_camera/esp32_camera.cpp:221:17: error: 'struct camera_config_t' has no member named 'pin_sccb_scl'; did you mean 'pin_sscb_scl'?
this->config_.pin_sccb_scl = scl;
^~~~~~~~~~~~
pin_sscb_scl
Compiling .pioenvs/camera-living-room/src/esphome/components/mdns/mdns_esp32_arduino.cpp.o
*** [.pioenvs/camera-living-room/src/esphome/components/esp32_camera/esp32_camera.cpp.o] Error 1
========================== [FAILED] Took 7.02 seconds ==========================
Did you done something else except of adding version: 2.0.0
?
Thx