File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed 
libraries/ESP32/examples/Camera/CameraWebServer Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change 88
99//  Select camera model
1010#define  CAMERA_MODEL_WROVER_KIT 
11+ // #define CAMERA_MODEL_ESP_EYE
1112// #define CAMERA_MODEL_M5STACK_PSRAM
1213// #define CAMERA_MODEL_AI_THINKER
1314
@@ -34,6 +35,25 @@ const char* password = "*********";
3435#define  HREF_GPIO_NUM     23 
3536#define  PCLK_GPIO_NUM     22 
3637
38+ #elif  defined(CAMERA_MODEL_ESP_EYE)
39+ #define  PWDN_GPIO_NUM     -1 
40+ #define  RESET_GPIO_NUM    -1 
41+ #define  XCLK_GPIO_NUM     4 
42+ #define  SIOD_GPIO_NUM     18 
43+ #define  SIOC_GPIO_NUM     23 
44+ 
45+ #define  Y9_GPIO_NUM       36 
46+ #define  Y8_GPIO_NUM       37 
47+ #define  Y7_GPIO_NUM       38 
48+ #define  Y6_GPIO_NUM       39 
49+ #define  Y5_GPIO_NUM       35 
50+ #define  Y4_GPIO_NUM       14 
51+ #define  Y3_GPIO_NUM       13 
52+ #define  Y2_GPIO_NUM       34 
53+ #define  VSYNC_GPIO_NUM    5 
54+ #define  HREF_GPIO_NUM     27 
55+ #define  PCLK_GPIO_NUM     25 
56+ 
3757#elif  defined(CAMERA_MODEL_M5STACK_PSRAM)
3858#define  PWDN_GPIO_NUM      -1 
3959#define  RESET_GPIO_NUM     15 
@@ -115,6 +135,11 @@ void setup() {
115135    config.fb_count  = 1 ;
116136  }
117137
138+ #if  defined(CAMERA_MODEL_ESP_EYE)
139+   pinMode (13 , INPUT_PULLUP);
140+   pinMode (14 , INPUT_PULLUP);
141+ #endif 
142+ 
118143  //  camera init
119144  esp_err_t  err = esp_camera_init (&config);
120145  if  (err != ESP_OK) {
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments