|
| 1 | +#ifndef CAMERA_PINS_H_ |
| 2 | +#define CAMERA_PINS_H_ |
| 3 | + |
| 4 | +#define CONFIG_BOARD_ESP32CAM_AITHINKER 1 |
| 5 | + |
| 6 | +// Freenove ESP32-WROVER CAM Board PIN Map |
| 7 | +#if CONFIG_BOARD_WROVER_KIT |
| 8 | +#define CAM_PIN_PWDN -1 //power down is not used |
| 9 | +#define CAM_PIN_RESET -1 //software reset will be performed |
| 10 | +#define CAM_PIN_XCLK 21 |
| 11 | +#define CAM_PIN_SIOD 26 |
| 12 | +#define CAM_PIN_SIOC 27 |
| 13 | + |
| 14 | +#define CAM_PIN_D7 35 |
| 15 | +#define CAM_PIN_D6 34 |
| 16 | +#define CAM_PIN_D5 39 |
| 17 | +#define CAM_PIN_D4 36 |
| 18 | +#define CAM_PIN_D3 19 |
| 19 | +#define CAM_PIN_D2 18 |
| 20 | +#define CAM_PIN_D1 5 |
| 21 | +#define CAM_PIN_D0 4 |
| 22 | +#define CAM_PIN_VSYNC 25 |
| 23 | +#define CAM_PIN_HREF 23 |
| 24 | +#define CAM_PIN_PCLK 22 |
| 25 | +#endif |
| 26 | + |
| 27 | +// ESP-EYE PIN Map |
| 28 | +#if CONFIG_BOARD_CAMERA_MODEL_ESP_EYE |
| 29 | +#define PWDN_GPIO_NUM -1 |
| 30 | +#define RESET_GPIO_NUM -1 |
| 31 | +#define XCLK_GPIO_NUM 4 |
| 32 | +#define SIOD_GPIO_NUM 18 |
| 33 | +#define SIOC_GPIO_NUM 23 |
| 34 | + |
| 35 | +#define Y9_GPIO_NUM 36 |
| 36 | +#define Y8_GPIO_NUM 37 |
| 37 | +#define Y7_GPIO_NUM 38 |
| 38 | +#define Y6_GPIO_NUM 39 |
| 39 | +#define Y5_GPIO_NUM 35 |
| 40 | +#define Y4_GPIO_NUM 14 |
| 41 | +#define Y3_GPIO_NUM 13 |
| 42 | +#define Y2_GPIO_NUM 34 |
| 43 | +#define VSYNC_GPIO_NUM 5 |
| 44 | +#define HREF_GPIO_NUM 27 |
| 45 | +#define PCLK_GPIO_NUM 25 |
| 46 | +#endif |
| 47 | + |
| 48 | + |
| 49 | +// AiThinker ESP32Cam PIN Map |
| 50 | +#if CONFIG_BOARD_ESP32CAM_AITHINKER |
| 51 | +#define CAM_PIN_PWDN 32 |
| 52 | +#define CAM_PIN_RESET -1 //software reset will be performed |
| 53 | +#define CAM_PIN_XCLK 0 |
| 54 | +#define CAM_PIN_SIOD 26 |
| 55 | +#define CAM_PIN_SIOC 27 |
| 56 | + |
| 57 | +#define CAM_PIN_D7 35 |
| 58 | +#define CAM_PIN_D6 34 |
| 59 | +#define CAM_PIN_D5 39 |
| 60 | +#define CAM_PIN_D4 36 |
| 61 | +#define CAM_PIN_D3 21 |
| 62 | +#define CAM_PIN_D2 19 |
| 63 | +#define CAM_PIN_D1 18 |
| 64 | +#define CAM_PIN_D0 5 |
| 65 | +#define CAM_PIN_VSYNC 25 |
| 66 | +#define CAM_PIN_HREF 23 |
| 67 | +#define CAM_PIN_PCLK 22 |
| 68 | +#endif |
| 69 | + |
| 70 | + |
| 71 | + |
| 72 | +// TTGO T-Journal ESP32 Camera PIN Map |
| 73 | +#if CONFIG_BOARD_CAMERA_MODEL_TTGO_T_JOURNAL |
| 74 | +#define PWDN_GPIO_NUM 0 |
| 75 | +#define RESET_GPIO_NUM 15 |
| 76 | +#define XCLK_GPIO_NUM 27 |
| 77 | +#define SIOD_GPIO_NUM 25 |
| 78 | +#define SIOC_GPIO_NUM 23 |
| 79 | + |
| 80 | +#define Y9_GPIO_NUM 19 |
| 81 | +#define Y8_GPIO_NUM 36 |
| 82 | +#define Y7_GPIO_NUM 18 |
| 83 | +#define Y6_GPIO_NUM 39 |
| 84 | +#define Y5_GPIO_NUM 5 |
| 85 | +#define Y4_GPIO_NUM 34 |
| 86 | +#define Y3_GPIO_NUM 35 |
| 87 | +#define Y2_GPIO_NUM 17 |
| 88 | +#define VSYNC_GPIO_NUM 22 |
| 89 | +#define HREF_GPIO_NUM 26 |
| 90 | +#define PCLK_GPIO_NUM 21 |
| 91 | +#endif |
| 92 | + |
| 93 | +#endif |
0 commit comments