Make ESP-CAM a predefined build option

pull/10/head
Nitek 2018-12-12 20:57:37 +01:00
parent ea0c306c19
commit 34082ba086
2 changed files with 22 additions and 0 deletions

View File

@ -43,6 +43,8 @@ config CAMERA_MODEL_WROVER_KIT
bool "WROVER-KIT With OV2640 Module" bool "WROVER-KIT With OV2640 Module"
config CAMERA_MODEL_M5STACK_PSRAM config CAMERA_MODEL_M5STACK_PSRAM
bool "M5Stack Camera With PSRAM" bool "M5Stack Camera With PSRAM"
config CAMERA_MODEL_ESP32_CAM
bool "ESP32-CAM by AI-Thinker"
config CAMERA_MODEL_CUSTOM config CAMERA_MODEL_CUSTOM
bool "Custom Camera Pinout" bool "Custom Camera Pinout"
endchoice endchoice

View File

@ -62,6 +62,26 @@
#define HREF_GPIO_NUM 26 #define HREF_GPIO_NUM 26
#define PCLK_GPIO_NUM 21 #define PCLK_GPIO_NUM 21
#elif CONFIG_CAMERA_MODEL_ESP32_CAM
#define PWDN_GPIO_NUM 32
#define RESET_GPIO_NUM -1
#define XCLK_GPIO_NUM 0
#define SIOD_GPIO_NUM 26
#define SIOC_GPIO_NUM 27
#define Y9_GPIO_NUM 35
#define Y8_GPIO_NUM 34
#define Y7_GPIO_NUM 39
#define Y6_GPIO_NUM 36
#define Y5_GPIO_NUM 21
#define Y4_GPIO_NUM 19
#define Y3_GPIO_NUM 18
#define Y2_GPIO_NUM 5
#define VSYNC_GPIO_NUM 25
#define HREF_GPIO_NUM 23
#define PCLK_GPIO_NUM 22
#elif CONFIG_CAMERA_MODEL_CUSTOM #elif CONFIG_CAMERA_MODEL_CUSTOM
#define PWDN_GPIO_NUM CONFIG_CAMERA_PIN_PWDN #define PWDN_GPIO_NUM CONFIG_CAMERA_PIN_PWDN
#define RESET_GPIO_NUM CONFIG_CAMERA_PIN_RESET #define RESET_GPIO_NUM CONFIG_CAMERA_PIN_RESET