View Single Post
Old 08-26-2022, 12:57 PM   #464
Renate
Onyx-maniac
Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.
 
Posts: 4,004
Karma: 18026955
Join Date: Feb 2012
Device: Nook NST, Glow2, 3, 4, '21, Kobo Aura2, Poke3, Poke5, Go6
I'm confused about where/if/how B&N is saving the color settings.
It may just be that they have it in some B&N user code that I've disabled.
There are many strange things about how B&N did their lights.

Onyx did their lights so that the cool (i.e. bluish) LED is a bit too cool to read by alone.
That's why normally you mix in some warm. It gives you a bit of latitude.

OTOH, the Glow 21 uses the cool LED all by itself as the "normal" light.
If you want things warm you can mix in the warm LED which in "normal" is completely off.

Also, practically every device on the planet uses the same IC to drive ereader frontlights and LCD backlights: the venerable TI LM3630A. It uses a range of 8 bits, 0 to 255. So normal people keep the settings on that range, 0 to 255. B&N went with a range of 0 to 100. This just loses you precision. A user never sees these numbers so it's not for esthetics.

So the challenge with making my Lights app is to make it all compatible with all the silly things that B&N did. I can control the actual hardware exactly, but it doesn't do me any good if when the device is powered off/on the stock software makes a mockery of my settings.

So, here you go. Right now I have it just control the brightness. I could add a slider for the color but right now you'd have to readjust it every time you turned your device back on.

I analysed the B&N transfer function and I think that they had someone type a lookup table after the office Xmas party. That's the blue line. I'm orange.

Just rename the .zip file .apk it's not actually zipped.
Attached Thumbnails
Click image for larger version

Name:	bnlights.png
Views:	460
Size:	20.8 KB
ID:	196111  
Attached Files
File Type: zip Lights-1.0.zip (29.0 KB, 354 views)
Renate is offline   Reply With Quote