diff options
Diffstat (limited to 'fw/fe310/test/cam.c')
-rw-r--r-- | fw/fe310/test/cam.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fw/fe310/test/cam.c b/fw/fe310/test/cam.c index 3162b40..2cef686 100644 --- a/fw/fe310/test/cam.c +++ b/fw/fe310/test/cam.c @@ -140,11 +140,13 @@ void app_cam(EVEWindow *window, EVEViewStack *stack) { eve_gpio_set(EVE_GPIO_CAM, 1); eos_time_sleep(100); - rv = eos_i2c_start(100000); + eos_i2c_speed(100000); + rv = eos_i2c_start(); if (!rv) rv = eos_ov2640_init(); if (!rv) rv = eos_ov2640_set_pixfmt(PIXFORMAT_JPEG); if (!rv) rv = eos_ov2640_set_framesize(FRAMESIZE_VGA); eos_i2c_stop(); + eos_i2c_speed(EOS_I2C_SPEED); if (!rv) { printf("CAM INIT\n"); |