Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a75602d

Browse filesBrowse files
authored
Add support M5Stack Unit CAM (espressif#5748)
In this PR, we add support for M5Stack Unit CAM to CameraWebServer. https://docs.m5stack.com/en/unit/unit_cam
1 parent 88789cd commit a75602d
Copy full SHA for a75602d

File tree

Expand file treeCollapse file tree

2 files changed

+20
-0
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+20
-0
lines changed

‎libraries/ESP32/examples/Camera/CameraWebServer/CameraWebServer.ino

Copy file name to clipboardExpand all lines: libraries/ESP32/examples/Camera/CameraWebServer/CameraWebServer.ino
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
//#define CAMERA_MODEL_M5STACK_V2_PSRAM // M5Camera version B Has PSRAM
1515
//#define CAMERA_MODEL_M5STACK_WIDE // Has PSRAM
1616
//#define CAMERA_MODEL_M5STACK_ESP32CAM // No PSRAM
17+
//#define CAMERA_MODEL_M5STACK_UNITCAM // No PSRAM
1718
//#define CAMERA_MODEL_AI_THINKER // Has PSRAM
1819
//#define CAMERA_MODEL_TTGO_T_JOURNAL // No PSRAM
1920

‎libraries/ESP32/examples/Camera/CameraWebServer/camera_pins.h

Copy file name to clipboardExpand all lines: libraries/ESP32/examples/Camera/CameraWebServer/camera_pins.h
+19Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,25 @@
113113
#define HREF_GPIO_NUM 26
114114
#define PCLK_GPIO_NUM 21
115115

116+
#elif defined(CAMERA_MODEL_M5STACK_UNITCAM)
117+
#define PWDN_GPIO_NUM -1
118+
#define RESET_GPIO_NUM 15
119+
#define XCLK_GPIO_NUM 27
120+
#define SIOD_GPIO_NUM 25
121+
#define SIOC_GPIO_NUM 23
122+
123+
#define Y9_GPIO_NUM 19
124+
#define Y8_GPIO_NUM 36
125+
#define Y7_GPIO_NUM 18
126+
#define Y6_GPIO_NUM 39
127+
#define Y5_GPIO_NUM 5
128+
#define Y4_GPIO_NUM 34
129+
#define Y3_GPIO_NUM 35
130+
#define Y2_GPIO_NUM 32
131+
#define VSYNC_GPIO_NUM 22
132+
#define HREF_GPIO_NUM 26
133+
#define PCLK_GPIO_NUM 21
134+
116135
#elif defined(CAMERA_MODEL_AI_THINKER)
117136
#define PWDN_GPIO_NUM 32
118137
#define RESET_GPIO_NUM -1

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.