Gradually reset maximum/minimum brightness
This commit is contained in:
parent
53aa19d91f
commit
5d1ef2263a
3 changed files with 16 additions and 1 deletions
|
|
@ -15,6 +15,10 @@
|
|||
// 'Forgetting factor' of the rolling brightness average
|
||||
#define LIGHTSENSOR_LAMBDA_BITS 4
|
||||
|
||||
// Time until minimum and maximum value are completely reset (in seconds)
|
||||
#define LIGHTSENSOR_LIMIT_RESET_TIME \
|
||||
(24 * 60 * 60)
|
||||
|
||||
// Bounds for converting absolute to relative brightness: Consider everything
|
||||
// near the minimum or maximum 0.0 or 1.0, respectively
|
||||
#define LIGHTSENSOR_LOW_BOUND ((unsigned int)(0.005 * LIGHTSENSOR_MAX))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue