From: Jan "Yenya" Kasprzak Date: Fri, 18 Jan 2013 21:51:40 +0000 (+0100) Subject: ambient.c: zones adjusted for photoresistor X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?p=bike-lights.git;a=commitdiff_plain;h=b0572d0cae20a9fd351b197a0ea9b01fc658ee77 ambient.c: zones adjusted for photoresistor --- diff --git a/firmware/ambient.c b/firmware/ambient.c index 735f80e..59c85a7 100644 --- a/firmware/ambient.c +++ b/firmware/ambient.c @@ -15,10 +15,10 @@ typedef struct { * and having small overlaps in order to provide a bit of hysteresis. */ static ambient_zone_t ambient_zones[] = { - { 0x0000, 0x3400 }, // dark - { 0x3300, 0x5000 }, - { 0x4c00, 0x8000 }, - { 0x7800, 0xffff } + { 0x0000, 0xb000 }, // dark + { 0xa800, 0xc400 }, + { 0xc200, 0xcb00 }, + { 0xca80, 0xffff } }; #define N_AMBIENT_ZONES (sizeof(ambient_zones)/sizeof(ambient_zones[0]))