safwan092

Untitled

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