This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#8285 - "Flashlight" plugin
Attached to Project:
Rockbox
Opened by William Thomas (p.opus) - Sunday, 09 December 2007, 07:41 GMT+1
Last edited by Peter D'Hoye (petur) - Wednesday, 23 April 2008, 23:16 GMT+1
Opened by William Thomas (p.opus) - Sunday, 09 December 2007, 07:41 GMT+1
Last edited by Peter D'Hoye (petur) - Wednesday, 23 April 2008, 23:16 GMT+1
|
DetailsI used to use the brightness of my Sansa E200 display in original firmware as sort of a "flashlight" to illuminate my way around the house or any other need where I needed a little light. The display on the Sansa is by default rather bright, and can illuminate an entire room with the brightest settings.
With Rockbox, my favorite themes have a darker background and as such, the display is not usable as a "flashlight" anymore. I like the dark background/light letters for readability, but don't wish to change a theme, just to get more output from the screen light. Perhaps a quick little plugin called flashlight could be added to plugins, The "flashlight" would turn on whenever the application is selected. Rockbox would set maximum brightness on the LCD and provide a blank screen with a background color of FFFFFF regardless of the currently selected theme. When the select or menu button is pushed, the plugin would simply go back to the Plugin selection screen with the original brightness and Theme. If you wanted more features, such as a timer for the light, then you could simply add a configure screen that would allow you to perhaps set the max time of activation and customize the "color" of the light by using the color configurator much like the current background color configurator is written It seems like it would be a pretty simple plugin, and I would use it quite a bit. I just don't know how to code. Any chance for a simple "flashlight" plugin? Any interest from others? |
This task depends upon
i white blank screen at maximum brightness would be useful as a plugin.
As an alternative, if you run the RockPaint application, it opens with a white screen by default, so maybe the need for this isn't as great as originally thought.
However, I do still like the flashlight application idea.
I'll update with information if I get it to work. If it does, I'd love to try changing it around to different colors. I play around with photography and would kill for something like this if it works out.
Will try to compile it with one of my DAPs.
Tested on e200.
Usage:
To change the colour on targets with a colour display use the left and right buttons (and the touch wheels, pads, scroll wheels where available). Any other button quits the plugin.
On targets without a colour display simply press/touch any button to quit the plugin.
Tested on iPod Video.
Note: The algorithm used to convert a hsv color to a rgb one probably can be optimized, because i didn't really used the value and saturation values. But i wasn't that bored ;-P
$ patch --dry-run -p0 <flashlight_v5.patch
patching file apps/plugins/CATEGORIES
Hunk #1 succeeded at 96 (offset 1 line).
patching file apps/plugins/SOURCES
patching file apps/plugins/flashlight.c
patch: **** malformed patch at line 227:
Is that an "ignorable" error?
I suggest you to read some tutorials about diff.
Whoever considers to commit it: I haven't bumped the plugin api since it changes often and i don't want to sync this patch everytime something changes. So you'd have to do it before committing :-)