Added idfv_4_0 support and added one new resolution
This commit is contained in:
committed by
Ivan Grokhotkov
parent
1b8fdfe335
commit
8a365ee272
@@ -27,6 +27,7 @@ typedef enum {
|
||||
} pixformat_t;
|
||||
|
||||
typedef enum {
|
||||
FRAMESIZE_96x96, // 96x96
|
||||
FRAMESIZE_QQVGA, // 160x120
|
||||
FRAMESIZE_QQVGA2, // 128x160
|
||||
FRAMESIZE_QCIF, // 176x144
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
|
||||
const int resolution[][2] = {
|
||||
{ 96, 96 }, /* 96x96 */
|
||||
{ 160, 120 }, /* QQVGA */
|
||||
{ 128, 160 }, /* QQVGA2*/
|
||||
{ 176, 144 }, /* QCIF */
|
||||
@@ -13,6 +14,3 @@ const int resolution[][2] = {
|
||||
{ 1600, 1200 }, /* UXGA */
|
||||
{ 2048, 1536 }, /* QXGA */
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ esp_err_t camera_enable_out_clock(camera_config_t* config)
|
||||
{
|
||||
periph_module_enable(PERIPH_LEDC_MODULE);
|
||||
|
||||
ledc_timer_config_t timer_conf;
|
||||
ledc_timer_config_t timer_conf = {};
|
||||
timer_conf.duty_resolution = 2;
|
||||
timer_conf.freq_hz = config->xclk_freq_hz;
|
||||
timer_conf.speed_mode = LEDC_HIGH_SPEED_MODE;
|
||||
|
||||
Reference in New Issue
Block a user