forked from xiaozhi/xiaozhi-esp32
正点原子DNESP32S3开发板新增相机(ov2640) (#733)
* 正点原子DNESP32S3开发板新增相机(ov2640) * 增加了相机预初始化,如无相机则camera_ = nullptr;并修正了语法分号 利用了 esp32_camera.h 的 esp_camera_init()/esp_camera_deinit() 函数
This commit is contained in:
@@ -40,5 +40,25 @@
|
||||
#define DISPLAY_BACKLIGHT_PIN GPIO_NUM_NC
|
||||
#define DISPLAY_BACKLIGHT_OUTPUT_INVERT true
|
||||
|
||||
/* 相机引脚配置 */
|
||||
#define CAM_PIN_PWDN GPIO_NUM_NC
|
||||
#define CAM_PIN_RESET GPIO_NUM_NC
|
||||
#define CAM_PIN_VSYNC GPIO_NUM_47
|
||||
#define CAM_PIN_HREF GPIO_NUM_48
|
||||
#define CAM_PIN_PCLK GPIO_NUM_45
|
||||
#define CAM_PIN_XCLK GPIO_NUM_NC
|
||||
#define CAM_PIN_SIOD GPIO_NUM_39
|
||||
#define CAM_PIN_SIOC GPIO_NUM_38
|
||||
#define CAM_PIN_D0 GPIO_NUM_4
|
||||
#define CAM_PIN_D1 GPIO_NUM_5
|
||||
#define CAM_PIN_D2 GPIO_NUM_6
|
||||
#define CAM_PIN_D3 GPIO_NUM_7
|
||||
#define CAM_PIN_D4 GPIO_NUM_15
|
||||
#define CAM_PIN_D5 GPIO_NUM_16
|
||||
#define CAM_PIN_D6 GPIO_NUM_17
|
||||
#define CAM_PIN_D7 GPIO_NUM_18
|
||||
#define OV_PWDN_IO 4
|
||||
#define OV_RESET_IO 5
|
||||
|
||||
#endif // _BOARD_CONFIG_H_
|
||||
|
||||
|
||||
Reference in New Issue
Block a user