From 7ea30f8942fc74e3a9d06d03af78bac3d4f2e568 Mon Sep 17 00:00:00 2001 From: "icing@tomato:~$" Date: Thu, 21 Jul 2022 08:35:17 +0800 Subject: [PATCH 1/2] Update ei_camera.h SIDO and VSYNC changed --- edge-impulse/ingestion-sdk-platform/sensors/ei_camera.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/edge-impulse/ingestion-sdk-platform/sensors/ei_camera.h b/edge-impulse/ingestion-sdk-platform/sensors/ei_camera.h index 19d1d53..6472c19 100644 --- a/edge-impulse/ingestion-sdk-platform/sensors/ei_camera.h +++ b/edge-impulse/ingestion-sdk-platform/sensors/ei_camera.h @@ -91,7 +91,7 @@ #define PWDN_GPIO_NUM -1 #define RESET_GPIO_NUM 15 #define XCLK_GPIO_NUM 27 - #define SIOD_GPIO_NUM 25 + #define SIOD_GPIO_NUM 22 #define SIOC_GPIO_NUM 23 #define Y9_GPIO_NUM 19 #define Y8_GPIO_NUM 36 @@ -101,7 +101,7 @@ #define Y4_GPIO_NUM 34 #define Y3_GPIO_NUM 35 #define Y2_GPIO_NUM 32 - #define VSYNC_GPIO_NUM 22 + #define VSYNC_GPIO_NUM 25 #define HREF_GPIO_NUM 26 #define PCLK_GPIO_NUM 21 // M5 Stack status/illumination LED details unknown/unclear @@ -222,4 +222,4 @@ class EiCameraESP32 : public EiCamera { void get_resolutions(ei_device_snapshot_resolutions_t **res, uint8_t *res_num); }; -#endif \ No newline at end of file +#endif From 50d0067d5db6a1d195e46f2576585ca23b619b52 Mon Sep 17 00:00:00 2001 From: "icing@tomato:~$" Date: Thu, 21 Jul 2022 19:14:48 +0800 Subject: [PATCH 2/2] Update ei_camera.h --- .../sensors/ei_camera.h | 28 ++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/edge-impulse/ingestion-sdk-platform/sensors/ei_camera.h b/edge-impulse/ingestion-sdk-platform/sensors/ei_camera.h index 6472c19..de5d547 100644 --- a/edge-impulse/ingestion-sdk-platform/sensors/ei_camera.h +++ b/edge-impulse/ingestion-sdk-platform/sensors/ei_camera.h @@ -84,7 +84,7 @@ #define V_FLIP 1 -#elif defined(CAMERA_MODEL_M5STACK_PSRAM) +#elif defined(CAMERA_MODEL_A_M5STACK_PSRAM) // // ESP32 M5STACK // @@ -110,6 +110,32 @@ // #define LED_OFF LOW // // #define LAMP_PIN x // LED FloodLamp. +#elif defined(CAMERA_MODEL_B_M5STACK_PSRAM) + // + // ESP32 M5STACK + // + #define PWDN_GPIO_NUM -1 + #define RESET_GPIO_NUM 15 + #define XCLK_GPIO_NUM 27 + #define SIOD_GPIO_NUM 25 + #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 22 + #define HREF_GPIO_NUM 26 + #define PCLK_GPIO_NUM 21 + // M5 Stack status/illumination LED details unknown/unclear + // #define LED_PIN x // Status led + // #define LED_ON HIGH // + // #define LED_OFF LOW // + // #define LAMP_PIN x // LED FloodLamp. + #elif defined(CAMERA_MODEL_M5STACK_V2_PSRAM) // // ESP32 M5STACK V2