From c730b8fca4586fc15595f2446f702e348f51ee63 Mon Sep 17 00:00:00 2001 From: cheykrym Date: Sun, 25 Jan 2026 23:15:14 +0300 Subject: [PATCH] low settings --- src/main.cpp | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 4abfc80..d33632a 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -220,6 +220,7 @@ void setup() { WiFi.mode(WIFI_STA); WiFi.begin(WIFI_SSID, WIFI_PASS); + WiFi.setSleep(false); Serial.print("Connecting to Wi-Fi"); while (WiFi.status() != WL_CONNECTED) { @@ -254,17 +255,14 @@ void setup() { config.pixel_format = PIXFORMAT_JPEG; config.grab_mode = CAMERA_GRAB_LATEST; - // FPS preset: smaller frame + higher JPEG quality value (more compression). + // Low-latency preset: smallest frame + heavier compression + single buffer. // Note: lower "quality" number = better quality but slower. + config.frame_size = FRAMESIZE_QQVGA; + config.jpeg_quality = 25; + config.fb_count = 1; if (psramFound()) { - config.frame_size = FRAMESIZE_QVGA; - config.jpeg_quality = 20; - config.fb_count = 2; config.fb_location = CAMERA_FB_IN_PSRAM; } else { - config.frame_size = FRAMESIZE_QVGA; - config.jpeg_quality = 20; - config.fb_count = 1; config.fb_location = CAMERA_FB_IN_DRAM; }