Advertisement
MrLunk

camera_pins.h

Feb 5th, 2021
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.57 KB | None | 0 0
  1. #if defined(CAMERA_MODEL_WROVER_KIT)
  2. #define PWDN_GPIO_NUM -1
  3. #define RESET_GPIO_NUM -1
  4. #define XCLK_GPIO_NUM 21
  5. #define SIOD_GPIO_NUM 26
  6. #define SIOC_GPIO_NUM 27
  7.  
  8. #define Y9_GPIO_NUM 35
  9. #define Y8_GPIO_NUM 34
  10. #define Y7_GPIO_NUM 39
  11. #define Y6_GPIO_NUM 36
  12. #define Y5_GPIO_NUM 19
  13. #define Y4_GPIO_NUM 18
  14. #define Y3_GPIO_NUM 5
  15. #define Y2_GPIO_NUM 4
  16. #define VSYNC_GPIO_NUM 25
  17. #define HREF_GPIO_NUM 23
  18. #define PCLK_GPIO_NUM 22
  19.  
  20. #elif defined(CAMERA_MODEL_ESP_EYE)
  21. #define PWDN_GPIO_NUM -1
  22. #define RESET_GPIO_NUM -1
  23. #define XCLK_GPIO_NUM 4
  24. #define SIOD_GPIO_NUM 18
  25. #define SIOC_GPIO_NUM 23
  26.  
  27. #define Y9_GPIO_NUM 36
  28. #define Y8_GPIO_NUM 37
  29. #define Y7_GPIO_NUM 38
  30. #define Y6_GPIO_NUM 39
  31. #define Y5_GPIO_NUM 35
  32. #define Y4_GPIO_NUM 14
  33. #define Y3_GPIO_NUM 13
  34. #define Y2_GPIO_NUM 34
  35. #define VSYNC_GPIO_NUM 5
  36. #define HREF_GPIO_NUM 27
  37. #define PCLK_GPIO_NUM 25
  38.  
  39. #elif defined(CAMERA_MODEL_M5STACK_PSRAM)
  40. #define PWDN_GPIO_NUM -1
  41. #define RESET_GPIO_NUM 15
  42. #define XCLK_GPIO_NUM 27
  43. #define SIOD_GPIO_NUM 25
  44. #define SIOC_GPIO_NUM 23
  45.  
  46. #define Y9_GPIO_NUM 19
  47. #define Y8_GPIO_NUM 36
  48. #define Y7_GPIO_NUM 18
  49. #define Y6_GPIO_NUM 39
  50. #define Y5_GPIO_NUM 5
  51. #define Y4_GPIO_NUM 34
  52. #define Y3_GPIO_NUM 35
  53. #define Y2_GPIO_NUM 32
  54. #define VSYNC_GPIO_NUM 22
  55. #define HREF_GPIO_NUM 26
  56. #define PCLK_GPIO_NUM 21
  57.  
  58. #elif defined(CAMERA_MODEL_M5STACK_WIDE)
  59. #define PWDN_GPIO_NUM -1
  60. #define RESET_GPIO_NUM 15
  61. #define XCLK_GPIO_NUM 27
  62. #define SIOD_GPIO_NUM 22
  63. #define SIOC_GPIO_NUM 23
  64.  
  65. #define Y9_GPIO_NUM 19
  66. #define Y8_GPIO_NUM 36
  67. #define Y7_GPIO_NUM 18
  68. #define Y6_GPIO_NUM 39
  69. #define Y5_GPIO_NUM 5
  70. #define Y4_GPIO_NUM 34
  71. #define Y3_GPIO_NUM 35
  72. #define Y2_GPIO_NUM 32
  73. #define VSYNC_GPIO_NUM 25
  74. #define HREF_GPIO_NUM 26
  75. #define PCLK_GPIO_NUM 21
  76.  
  77. #elif defined(CAMERA_MODEL_AI_THINKER)
  78. #define PWDN_GPIO_NUM 32
  79. #define RESET_GPIO_NUM -1
  80. #define XCLK_GPIO_NUM 0
  81. #define SIOD_GPIO_NUM 26
  82. #define SIOC_GPIO_NUM 27
  83.  
  84. #define Y9_GPIO_NUM 35
  85. #define Y8_GPIO_NUM 34
  86. #define Y7_GPIO_NUM 39
  87. #define Y6_GPIO_NUM 36
  88. #define Y5_GPIO_NUM 21
  89. #define Y4_GPIO_NUM 19
  90. #define Y3_GPIO_NUM 18
  91. #define Y2_GPIO_NUM 5
  92. #define VSYNC_GPIO_NUM 25
  93. #define HREF_GPIO_NUM 23
  94. #define PCLK_GPIO_NUM 22
  95.  
  96. #else
  97. #error "Camera model not selected"
  98. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement