Rolling 20220121

This commit is contained in:
jomjol
2022-01-21 20:50:54 +01:00
parent 19a6c21c44
commit 53606d5055
31 changed files with 1051 additions and 51 deletions

View File

@@ -33,7 +33,7 @@
// ESP32Cam (AiThinker) PIN Map
#define CAM_PIN_PWDN (gpio_num_t) 32
#define CAM_PIN_PWDN 32
#define CAM_PIN_RESET -1 //software reset will be performed
#define CAM_PIN_XCLK 0
#define CAM_PIN_SIOD 26
@@ -51,6 +51,7 @@
#define CAM_PIN_HREF 23
#define CAM_PIN_PCLK 22
static const char *TAGCAMERACLASS = "server_part_camera";
static camera_config_t camera_config = {
@@ -623,13 +624,15 @@ CCamera::CCamera()
esp_err_t CCamera::InitCam()
{
if(CAM_PIN_PWDN != -1){
/*
if( CAM_PIN_PWDN != -1){
// Init the GPIO
gpio_pad_select_gpio(CAM_PIN_PWDN);
/* Set the GPIO as a push/pull output */
gpio_set_direction(CAM_PIN_PWDN, GPIO_MODE_OUTPUT);
gpio_set_level(CAM_PIN_PWDN, 0);
gpio_pad_select_gpio((gpio_num_t) CAM_PIN_PWDN);
// Set the GPIO as a push/pull output
gpio_set_direction((gpio_num_t) CAM_PIN_PWDN, GPIO_MODE_OUTPUT);
gpio_set_level((gpio_num_t) CAM_PIN_PWDN, 0);
}
*/
printf("Init Camera\n");
ActualQuality = camera_config.jpeg_quality;