From b029304b07fb2e33a6705e75c6b272ca95908ebd Mon Sep 17 00:00:00 2001 From: UriShX Date: Mon, 26 Feb 2024 10:57:55 +0200 Subject: [PATCH] working platformio example --- esp32-cam-webserver.ino => esp32-cam-webserver.cpp | 0 myconfig.sample.h | 4 +++- platformio.ini | 6 ++++-- 3 files changed, 7 insertions(+), 3 deletions(-) rename esp32-cam-webserver.ino => esp32-cam-webserver.cpp (100%) diff --git a/esp32-cam-webserver.ino b/esp32-cam-webserver.cpp similarity index 100% rename from esp32-cam-webserver.ino rename to esp32-cam-webserver.cpp diff --git a/myconfig.sample.h b/myconfig.sample.h index 86efcafe..4f10c5a6 100644 --- a/myconfig.sample.h +++ b/myconfig.sample.h @@ -3,7 +3,8 @@ * * The local config is in the '.gitignore' file, which helps to keep details secret. */ - +#ifndef MYCONFIG_H +#define MYCONFIG_H /* Give the camera a name for the web interface */ #define CAM_NAME "ESP32 camera server" @@ -195,3 +196,4 @@ struct station stationList[] = {{"ssid1", "pass1", true}, // For clone modules that have camera module and SPIFFS startup issues try setting // this very low (start at 2MHZ and increase): // #define XCLK_FREQ_MHZ 2 +#endif \ No newline at end of file diff --git a/platformio.ini b/platformio.ini index cabb5b46..4dc99857 100644 --- a/platformio.ini +++ b/platformio.ini @@ -34,14 +34,16 @@ src_dir = ./ [env:esp32dev] -platform = https://github.com/platformio/platform-espressif32.git#feature/arduino-upstream -platform_packages = framework-arduinoespressif32@https://github.com/espressif/arduino-esp32.git#2.0.3 +; platform = https://github.com/platformio/platform-espressif32.git#feature/arduino-upstream +; platform_packages = framework-arduinoespressif32@https://github.com/espressif/arduino-esp32.git#2.0.3 board = esp32dev +platform = espressif32 board_build.partitions = min_spiffs.csv framework = arduino build_flags = -DBOARD_HAS_PSRAM -mfix-esp32-psram-cache-issue +monitor_speed = 115200 ; For OTA uploading uncomment the next lines and add the IP address or mDNS name of the camera module, and the OTA password ;upload_protocol = espota ;upload_port =