From cc23cb4c49ce57c358bc7f0758f9689b6e6d76e7 Mon Sep 17 00:00:00 2001 From: iabdalkader Date: Wed, 5 Mar 2014 17:11:15 +0200 Subject: [PATCH] Set default brightness and gainceiling --- src/py/py_sensor.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/py/py_sensor.c b/src/py/py_sensor.c index 7ba56053e..f24751e4e 100644 --- a/src/py/py_sensor.c +++ b/src/py/py_sensor.c @@ -54,8 +54,8 @@ mp_obj_t py_sensor_sinit() { sensor_set_pixformat(PIXFORMAT_RGB565); sensor_set_framesize(FRAMESIZE_QQVGA); sensor_set_framerate(FRAMERATE_30FPS); - sensor_set_gainceiling(GAINCEILING_16X); - sensor_set_brightness(3); + sensor_set_gainceiling(GAINCEILING_8X); + sensor_set_brightness(-2); return mp_const_none; } @@ -141,8 +141,8 @@ mp_obj_t py_sensor_init() sensor_set_pixformat(PIXFORMAT_RGB565); sensor_set_framesize(FRAMESIZE_QQVGA); sensor_set_framerate(FRAMERATE_30FPS); - sensor_set_gainceiling(GAINCEILING_16X); - sensor_set_brightness(3); + sensor_set_gainceiling(GAINCEILING_8X); + sensor_set_brightness(-2); /* Create module */ mp_obj_t m = mp_obj_new_module(qstr_from_str("sensor"));