forked from xiaozhi/xiaozhi-esp32
feat: add camera functions (ESP-SparkBot) (#687)
Co-authored-by: lvhaiyu <lvhaiyu@espressif.com>
This commit is contained in:
@@ -68,4 +68,32 @@ typedef enum {
|
||||
LIGHT_MODE_MAX
|
||||
} light_mode_t;
|
||||
|
||||
/* Camera PINs*/
|
||||
#define SPARKBOT_CAMERA_XCLK (GPIO_NUM_15)
|
||||
#define SPARKBOT_CAMERA_PCLK (GPIO_NUM_13)
|
||||
#define SPARKBOT_CAMERA_VSYNC (GPIO_NUM_6)
|
||||
#define SPARKBOT_CAMERA_HSYNC (GPIO_NUM_7)
|
||||
#define SPARKBOT_CAMERA_D0 (GPIO_NUM_11)
|
||||
#define SPARKBOT_CAMERA_D1 (GPIO_NUM_9)
|
||||
#define SPARKBOT_CAMERA_D2 (GPIO_NUM_8)
|
||||
#define SPARKBOT_CAMERA_D3 (GPIO_NUM_10)
|
||||
#define SPARKBOT_CAMERA_D4 (GPIO_NUM_12)
|
||||
#define SPARKBOT_CAMERA_D5 (GPIO_NUM_18)
|
||||
#define SPARKBOT_CAMERA_D6 (GPIO_NUM_17)
|
||||
#define SPARKBOT_CAMERA_D7 (GPIO_NUM_16)
|
||||
|
||||
#define SPARKBOT_CAMERA_PWDN (GPIO_NUM_NC)
|
||||
#define SPARKBOT_CAMERA_RESET (GPIO_NUM_NC)
|
||||
#define SPARKBOT_CAMERA_XCLK (GPIO_NUM_15)
|
||||
#define SPARKBOT_CAMERA_PCLK (GPIO_NUM_13)
|
||||
#define SPARKBOT_CAMERA_VSYNC (GPIO_NUM_6)
|
||||
#define SPARKBOT_CAMERA_HSYNC (GPIO_NUM_7)
|
||||
|
||||
#define SPARKBOT_CAMERA_XCLK_FREQ (16000000)
|
||||
#define SPARKBOT_LEDC_TIMER (LEDC_TIMER_0)
|
||||
#define SPARKBOT_LEDC_CHANNEL (LEDC_CHANNEL_0)
|
||||
|
||||
#define SPARKBOT_CAMERA_SIOD (GPIO_NUM_NC)
|
||||
#define SPARKBOT_CAMERA_SIOC (GPIO_NUM_NC)
|
||||
|
||||
#endif // _BOARD_CONFIG_H_
|
||||
|
||||
Reference in New Issue
Block a user