Added idfv_4_0 support and added one new resolution

This commit is contained in:
Aditya Patwardhan
2019-12-02 20:58:47 +05:30
committed by Ivan Grokhotkov
parent 1b8fdfe335
commit 8a365ee272
3 changed files with 3 additions and 4 deletions

View File

@@ -27,6 +27,7 @@ typedef enum {
} pixformat_t;
typedef enum {
FRAMESIZE_96x96, // 96x96
FRAMESIZE_QQVGA, // 160x120
FRAMESIZE_QQVGA2, // 128x160
FRAMESIZE_QCIF, // 176x144

View File

@@ -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 */
};

View File

@@ -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;