View Single Post
Copernicus's Avatar
Posts: 1,986 | Thanked: 7,698 times | Joined on Dec 2010 @ Dayton, Ohio
#66
Originally Posted by pichlo View Post
Is the mapping between the numbers and mA available?
Yes, essentially; you kind of have to read between the lines, but the V4L2 "12-19" values map directly into the HPLED "12-31" register values described in the data sheet for the ADP1653 controller chip.

And I've finally given up doing any more fiddling on Lanterne this evening, so I've pushed up version 0.5.0, which is now heading towards the extras-devel repository. In this update, I have in fact changed the flash brightness level on the Strobe window to a combo box that indicates the power level being used (from 215 mA at 12, to 320 mA at 19). Also in this update:

- The red (indicator) LED is now supported. You can now select "Use Indicator LED as Torch", after which it will be used instead of the flash LEDs for all torch functionality (normal torch, SOS, Morse code, etc.) Also, you can vary its brightness, with seven levels going from a low of 2.5 mA to a high of 17.5 mA.

- You can now choose to use the Torch On/Off button as a Morse Key; that is, the light will stay on for as long as you hold the button down. This is also an option on the Preferences window.

- And, you can use the camera button to turn the torch on and off. I thought this might be useful for using the N900 as a flashlight; in particular, I was hoping to be able to start/stop the red LED while the screen was dark. (This is useful in low-light situations, when you don't want to disturb your night vision with the brightness of the screen's backlight, such as when watching the stars.) Unfortunately, the switch is currently disabled when the screen backlight times out... In any case, this option is disabled by default for those who are not interested. It can be enabled in the Preferences window.

Again, fresh code, beware of bugs! Thanks.
 

The Following 6 Users Say Thank You to Copernicus For This Useful Post: