From 18c96a19ef2d922b84be53f638b128494b8b63bc Mon Sep 17 00:00:00 2001 From: me-no-dev Date: Wed, 10 Apr 2019 20:43:38 +0200 Subject: [PATCH] Add support for the wide M5Stack Camera and clarify the static IP option --- .../camera_web_server/main/Kconfig.projbuild | 6 +++++- .../main/include/app_camera.h | 19 +++++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/examples/single_chip/camera_web_server/main/Kconfig.projbuild b/examples/single_chip/camera_web_server/main/Kconfig.projbuild index b28c009..738788e 100644 --- a/examples/single_chip/camera_web_server/main/Kconfig.projbuild +++ b/examples/single_chip/camera_web_server/main/Kconfig.projbuild @@ -26,8 +26,10 @@ config ESP_WIFI_AP_PASSWORD AP password for WPA2 or empty for Open. config SERVER_IP - string "IP address of server" + string "WiFi AP IP Address" default "192.168.4.1" + help + IP address that the ESP will assign to it's AP interface. You can use this IP to connect to the camera after flashing. config ESP_MAXIMUM_RETRY int "Maximum retry" @@ -49,6 +51,8 @@ config CAMERA_MODEL_ESP_EYE bool "ESP_EYE DevKit" config CAMERA_MODEL_M5STACK_PSRAM bool "M5Stack Camera With PSRAM" +config CAMERA_MODEL_M5STACK_WIDE + bool "M5Stack Camera F (Wide)" config CAMERA_MODEL_AI_THINKER bool "ESP32-CAM by AI-Thinker" config CAMERA_MODEL_CUSTOM diff --git a/examples/single_chip/camera_web_server/main/include/app_camera.h b/examples/single_chip/camera_web_server/main/include/app_camera.h index 5941d48..8cccfd4 100755 --- a/examples/single_chip/camera_web_server/main/include/app_camera.h +++ b/examples/single_chip/camera_web_server/main/include/app_camera.h @@ -81,6 +81,25 @@ #define HREF_GPIO_NUM 26 #define PCLK_GPIO_NUM 21 +#elif CONFIG_CAMERA_MODEL_M5STACK_WIDE +#define PWDN_GPIO_NUM -1 +#define RESET_GPIO_NUM 15 +#define XCLK_GPIO_NUM 27 +#define SIOD_GPIO_NUM 22 +#define SIOC_GPIO_NUM 23 + +#define Y9_GPIO_NUM 19 +#define Y8_GPIO_NUM 36 +#define Y7_GPIO_NUM 18 +#define Y6_GPIO_NUM 39 +#define Y5_GPIO_NUM 5 +#define Y4_GPIO_NUM 34 +#define Y3_GPIO_NUM 35 +#define Y2_GPIO_NUM 32 +#define VSYNC_GPIO_NUM 25 +#define HREF_GPIO_NUM 26 +#define PCLK_GPIO_NUM 21 + #elif CONFIG_CAMERA_MODEL_AI_THINKER #define PWDN_GPIO_NUM 32 #define RESET_GPIO_NUM -1