Add KS-DIY esp32-s3 based camera series pin map

pull/190/head
Kevincoooool 2021-12-07 16:12:48 +08:00
parent f13ca96427
commit d73a3c0163
4 changed files with 79 additions and 2 deletions

View File

@ -82,6 +82,8 @@ menu "ESP-WHO Configuration"
bool "M5Stack Camera F (Wide)" bool "M5Stack Camera F (Wide)"
config CAMERA_MODULE_AI_THINKER config CAMERA_MODULE_AI_THINKER
bool "ESP32-CAM by AI-Thinker" bool "ESP32-CAM by AI-Thinker"
config CAMERA_MODULE_S3_KS_DIY
bool "ESP32-S3-CAM by S3_KS-DIY"
config CAMERA_MODULE_CUSTOM config CAMERA_MODULE_CUSTOM
bool "Custom Camera Pinout" bool "Custom Camera Pinout"
endchoice endchoice

View File

@ -171,6 +171,26 @@
#define CAMERA_PIN_HREF 23 #define CAMERA_PIN_HREF 23
#define CAMERA_PIN_PCLK 22 #define CAMERA_PIN_PCLK 22
#elif CONFIG_CAMERA_MODULE_S3_KS_DIY
#define CAMERA_MODULE_NAME "S3_KS_DIY"
#define CAMERA_PIN_PWDN -4
#define CAMERA_PIN_RESET -1
#define CAMERA_PIN_XCLK -1
#define CAMERA_PIN_SIOD 17
#define CAMERA_PIN_SIOC 18
#define CAMERA_PIN_D7 39
#define CAMERA_PIN_D6 41
#define CAMERA_PIN_D5 42
#define CAMERA_PIN_D4 5
#define CAMERA_PIN_D3 40
#define CAMERA_PIN_D2 14
#define CAMERA_PIN_D1 47
#define CAMERA_PIN_D0 45
#define CAMERA_PIN_VSYNC 21
#define CAMERA_PIN_HREF 38
#define CAMERA_PIN_PCLK 48
#elif CONFIG_CAMERA_MODULE_CUSTOM #elif CONFIG_CAMERA_MODULE_CUSTOM
#define CAMERA_MODULE_NAME "CUSTOM" #define CAMERA_MODULE_NAME "CUSTOM"
#define CAMERA_PIN_PWDN CONFIG_CAMERA_PIN_PWDN #define CAMERA_PIN_PWDN CONFIG_CAMERA_PIN_PWDN

View File

@ -174,6 +174,25 @@
#define CAMERA_PIN_HREF 23 #define CAMERA_PIN_HREF 23
#define CAMERA_PIN_PCLK 22 #define CAMERA_PIN_PCLK 22
#elif CONFIG_CAMERA_MODULE_S3_KS_DIY
#define CAMERA_MODULE_NAME "S3_KS_DIY"
#define CAMERA_PIN_PWDN -1
#define CAMERA_PIN_RESET -1
#define CAMERA_PIN_XCLK -1
#define CAMERA_PIN_SIOD 17
#define CAMERA_PIN_SIOC 18
#define CAMERA_PIN_D7 39
#define CAMERA_PIN_D6 41
#define CAMERA_PIN_D5 42
#define CAMERA_PIN_D4 5
#define CAMERA_PIN_D3 40
#define CAMERA_PIN_D2 14
#define CAMERA_PIN_D1 47
#define CAMERA_PIN_D0 45
#define CAMERA_PIN_VSYNC 21
#define CAMERA_PIN_HREF 38
#define CAMERA_PIN_PCLK 48
#elif CONFIG_CAMERA_MODULE_CUSTOM #elif CONFIG_CAMERA_MODULE_CUSTOM
#define CAMERA_MODULE_NAME "CUSTOM" #define CAMERA_MODULE_NAME "CUSTOM"
#define CAMERA_PIN_PWDN CONFIG_CAMERA_PIN_PWDN #define CAMERA_PIN_PWDN CONFIG_CAMERA_PIN_PWDN
@ -197,8 +216,8 @@
#define XCLK_FREQ_HZ 20000000 #define XCLK_FREQ_HZ 20000000
#define CAMERA_PIXFORMAT PIXFORMAT_RGB565 #define CAMERA_PIXFORMAT PIXFORMAT_RGB565
#define CAMERA_FRAME_SIZE FRAMESIZE_240X240 #define CAMERA_FRAME_SIZE FRAMESIZE_QVGA
#define CAMERA_FB_COUNT 2 #define CAMERA_FB_COUNT 1
@ -232,6 +251,23 @@
#define LCD_WIDTH 240 #define LCD_WIDTH 240
#define LCD_HEIGHT 320 #define LCD_HEIGHT 320
#define LCD_ROTATE SCR_SWAP_XY|SCR_MIRROR_X #define LCD_ROTATE SCR_SWAP_XY|SCR_MIRROR_X
#elif CAMERA_MODULE_S3_KS_DIY
#define LCD_CONTROLLER SCREEN_CONTROLLER_ST7789
#define LCD_MOSI 11
#define LCD_MISO 13
#define LCD_SCLK 12
#define LCD_CS 10
#define LCD_DC 9
#define LCD_RST -1
#define LCD_BCKL -1
// LCD display width and height
#define LCD_WIDTH 240
#define LCD_HEIGHT 320
#define LCD_ROTATE SCR_SWAP_XY|SCR_MIRROR_X
#endif #endif

View File

@ -155,6 +155,25 @@
#define HREF_GPIO_NUM 23 #define HREF_GPIO_NUM 23
#define PCLK_GPIO_NUM 22 #define PCLK_GPIO_NUM 22
#elif CONFIG_CAMERA_MODULE_S3_KS_DIY
#define CAMERA_MODULE_NAME "S3_KS_DIY"
#define CAMERA_PIN_PWDN -4
#define CAMERA_PIN_RESET -1
#define CAMERA_PIN_XCLK -1
#define CAMERA_PIN_SIOD 17
#define CAMERA_PIN_SIOC 18
#define CAMERA_PIN_D7 39
#define CAMERA_PIN_D6 41
#define CAMERA_PIN_D5 42
#define CAMERA_PIN_D4 5
#define CAMERA_PIN_D3 40
#define CAMERA_PIN_D2 14
#define CAMERA_PIN_D1 47
#define CAMERA_PIN_D0 45
#define CAMERA_PIN_VSYNC 21
#define CAMERA_PIN_HREF 38
#define CAMERA_PIN_PCLK 48
#elif CONFIG_CAMERA_MODEL_CUSTOM #elif CONFIG_CAMERA_MODEL_CUSTOM
#define CAM_BOARD "CUSTOM" #define CAM_BOARD "CUSTOM"