From 8aede70c50ec3e089c99562342a7718e72af0239 Mon Sep 17 00:00:00 2001 From: Fexiven <48439988+Fexiven@users.noreply.github.com> Date: Mon, 19 May 2025 07:25:13 +0000 Subject: [PATCH 1/2] Update esp32_camera.rst - add M5Stack CamS3 5MP --- components/esp32_camera.rst | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/components/esp32_camera.rst b/components/esp32_camera.rst index 9402af34d3..1d749cef8f 100644 --- a/components/esp32_camera.rst +++ b/components/esp32_camera.rst @@ -100,10 +100,12 @@ Image Settings: - ``2560x1600`` (WQXGA, 8:5) - ``1080x1920`` (Portrait FHD, 9:16) - ``2560x1920`` (QSXGA, 4:3) + - ``2592×1944`` (5MP, 4:3) - **jpeg_quality** (*Optional*, int): The JPEG quality that the camera should encode images with. - From 10 (best) to 63 (worst). Defaults to ``10``. + - **For Mega CCM sensor:** ``0`` (high quality), ``1`` (medium quality), ``2`` (low quality). + - **For other sensors:** From 10 (best) to 63 (worst). Defaults to ``10``. - **vertical_flip** (*Optional*, boolean): Whether to flip the image vertically. Defaults to ``true``. - **horizontal_mirror** (*Optional*, boolean): Whether to mirror the image horizontally. Defaults to ``true``. - **contrast** (*Optional*, int): The contrast to apply to the picture, from -2 to 2. Defaults to ``0``. @@ -278,6 +280,27 @@ Configuration examples pixel_clock_pin: GPIO21 reset_pin: GPIO15 +**M5Stack CamS3 5MP**: + +.. code-block:: yaml + + # Example configuration entry as per https://docs.m5stack.com/en/unit/Unit-CAMS3%205MP + esp32_camera: + name: camera + external_clock: + pin: GPIO11 + frequency: 20MHz + i2c_pins: + sda: GPIO17 + scl: GPIO41 + data_pins: [GPIO6, GPIO15, GPIO16, GPIO7, GPIO5, GPIO10, GPIO4, GPIO13] + vsync_pin: GPIO42 + href_pin: GPIO18 + pixel_clock_pin: GPIO12 + reset_pin: GPIO21 + resolution: 5MP + jpeg_quality: 0 + **Wrover Kit Boards**: .. code-block:: yaml From 4324a83884281d984b6cee50b4bb04fca7a437c0 Mon Sep 17 00:00:00 2001 From: Fexiven <48439988+Fexiven@users.noreply.github.com> Date: Mon, 19 May 2025 09:57:52 +0200 Subject: [PATCH 2/2] Update components/esp32_camera.rst Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --- components/esp32_camera.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/esp32_camera.rst b/components/esp32_camera.rst index 1d749cef8f..a0e5b2b5c4 100644 --- a/components/esp32_camera.rst +++ b/components/esp32_camera.rst @@ -298,7 +298,7 @@ Configuration examples href_pin: GPIO18 pixel_clock_pin: GPIO12 reset_pin: GPIO21 - resolution: 5MP + resolution: 2592x1944 jpeg_quality: 0 **Wrover Kit Boards**: