Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update ei_camera.h, change SIDO_GPIO_PIN and VSYNC_GPIO_PIN for M5Camera with PSRAM #5

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 28 additions & 2 deletions edge-impulse/ingestion-sdk-platform/sensors/ei_camera.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,33 @@
#define V_FLIP 1


#elif defined(CAMERA_MODEL_M5STACK_PSRAM)
#elif defined(CAMERA_MODEL_A_M5STACK_PSRAM)
//
// ESP32 M5STACK
//
#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
// 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_B_M5STACK_PSRAM)
//
// ESP32 M5STACK
//
Expand Down Expand Up @@ -222,4 +248,4 @@ class EiCameraESP32 : public EiCamera {
void get_resolutions(ei_device_snapshot_resolutions_t **res, uint8_t *res_num);
};

#endif
#endif