From 1ba62fe1495427512321fe9c782c04aead5033ab Mon Sep 17 00:00:00 2001 From: Owen Date: Sun, 8 May 2022 08:47:05 +0200 Subject: [PATCH 1/3] Platformio stream, fix #218 --- platformio.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platformio.ini b/platformio.ini index 8317bf4..cabb5b4 100644 --- a/platformio.ini +++ b/platformio.ini @@ -35,7 +35,7 @@ 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.2 +platform_packages = framework-arduinoespressif32@https://github.com/espressif/arduino-esp32.git#2.0.3 board = esp32dev board_build.partitions = min_spiffs.csv framework = arduino From 4c9ab6e174f224ca67ed06c693f466acfc913475 Mon Sep 17 00:00:00 2001 From: Owen Date: Sun, 8 May 2022 08:58:47 +0200 Subject: [PATCH 2/3] Clean up setting grab mode and default framesizes - stop handling non-psram scenarios. --- esp32-cam-webserver.ino | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/esp32-cam-webserver.ino b/esp32-cam-webserver.ino index 38b22fa..64d6483 100644 --- a/esp32-cam-webserver.ino +++ b/esp32-cam-webserver.ino @@ -335,17 +335,12 @@ void StartCamera() { config.pin_reset = RESET_GPIO_NUM; config.xclk_freq_hz = xclk * 1000000; config.pixel_format = PIXFORMAT_JPEG; + // Low(ish) default framesize and quality + config.frame_size = FRAMESIZE_SVGA; + config.jpeg_quality = 12; + config.fb_location = CAMERA_FB_IN_PSRAM; + config.fb_count = 2; config.grab_mode = CAMERA_GRAB_LATEST; - // Pre-allocate large buffers - if(psramFound()){ - config.frame_size = FRAMESIZE_UXGA; - config.jpeg_quality = 10; - config.fb_count = 2; - } else { - config.frame_size = FRAMESIZE_SVGA; - config.jpeg_quality = 12; - config.fb_count = 1; - } #if defined(CAMERA_MODEL_ESP_EYE) pinMode(13, INPUT_PULLUP); @@ -410,8 +405,6 @@ void StartCamera() { // set initial frame rate #if defined(DEFAULT_RESOLUTION) s->set_framesize(s, DEFAULT_RESOLUTION); - #else - s->set_framesize(s, FRAMESIZE_SVGA); #endif /* From 19eec9c143a6181f8970842bb8f1e50cfbf8191e Mon Sep 17 00:00:00 2001 From: Owen Date: Fri, 6 Dec 2024 16:04:48 +0100 Subject: [PATCH 3/3] Announce EOL --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index faa576c..2d87c9d 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,10 @@ +# IMPORTANT! +This is a Old and rather Obsolete sketch; it only works with a very old version of the ESP32 Arduino core (2.0.2) and is missing all the improvements that espressif have made since then.. + +It is also quite popular (Hi YouTubers!!) so I do not simply want to 'hard abandon' it without giving people a clue about where to go next..! + +I am in the process of archiving it; expect some additional instructions and links to alternatives to appear here soon. + # ESP32-CAM example revisited.     [![CI Status](https://travis-ci.com/easytarget/esp32-cam-webserver.svg?branch=master)](https://travis-ci.com/github/easytarget/esp32-cam-webserver)    ![ESP-EYE logo](Docs/logo.svg) ## Taken from the ESP examples, and expanded