So I was trying to think how I’d implement it, and I agree if it’s simple then it really only needs to set the brightness level once, then remember if the user adjusts it, and reuse that adjustment for every lux reading.
Hence the example I gave:
Take the ambient light level (lux).
Set brightness to 5.
Log that the user has made it 1 level or 10% darker.
Next time it senses the same lux level, set the brightness 1 level lower
Nope, I’ll bet it is like five IF statements and the best part is that it is consistent!
So I was trying to think how I’d implement it, and I agree if it’s simple then it really only needs to set the brightness level once, then remember if the user adjusts it, and reuse that adjustment for every lux reading.
Hence the example I gave: