maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Announce] Lanterne - an all-purpose flashlight app (https://talk.maemo.org/showthread.php?t=90229)

sixwheeledbeast 2013-05-31 22:00

Re: [Announce] Lanterne - an app for experimenting with the flash LEDs
 
Quote:

Originally Posted by Copernicus (Post 1348475)
Well, mainly, I was thinking about them because I was playing around with using the camera button as an on/off switch. I figure if you're using Lanterne, you're probably not wanting to take a picture.

I dislike the idea of one app messing around with another app's "gconf" settings; just temporarily killing the app, and restarting it when Lanterne ends, seems cleaner somehow...

In any case, this would certainly be an optional setting in the preferences, that would not be enabled unless the user asked for it. :)

(BTW, is it possible to continue to monitor the status of the hardware buttons when the N900 backlight goes off? I was hoping to be able to enable the LEDs while the screen was still dark, but it seems that isn't possible...)

A personally I hope the use of the camera button doesn't come to Lanterne :)

I have all sorts of hacks on this button.

I use shortcutd to have short focus press as lock and long focus press is skip track.
I use vi's cam_focus chmod trick to keep the cam_focus unlocked when the device is locked.
This means I can skip track with the cam key.

Maybe the volume keys like pierogi, up for on down for off and remember that landscape can be opposite (well the volume is).

See below for my personal N900 tweaks page.
http://wiki.maemo.org/User:Sixwheeledbeast/Scripts

pichlo 2013-05-31 22:19

Re: [Announce] Lanterne - an app for experimenting with the flash LEDs
 
Quote:

Originally Posted by nokiabot (Post 1348416)
Scary dev:( just to make clear the leds will be damaged if overvoltaged.
A led marked at 1.5 volts operates normally at 1 volt goes up to 1.3 volts
good diodes can handle twice the voltage for short periods but goes greenish after a while
try them at just 25x voltage and they blow up (really blasts) in 1 sec or go greenish to dark. At 50x voltage instantly blasts:)

What a load of utter C-R-A-P! Please, please do yourself and all of us a favour and go read on diodes and LEDs on Wikipedia. "Good diodes can handle twice the voltage?" Bullshït!

Quote:

checked using volameter on diffrent leds flat sphere square and the ones on strips.
I bet those with go-faster stripes fare the best.

sixwheeledbeast 2013-05-31 22:26

Re: [Announce] Lanterne - an app for experimenting with the flash LEDs
 
Quote:

Originally Posted by pichlo;1348484"
Good diodes can handle twice the voltage?"

Nobody mentioned changing the voltage anyway. It's the current.

I think rather than the 12-19 power level the actual mA values makes more sense.

pichlo 2013-06-01 01:33

Re: [Announce] Lanterne - an app for experimenting with the flash LEDs
 
Quote:

Originally Posted by sixwheeledbeast (Post 1348485)
Nobody mentioned changing the voltage anyway. It's the current.

Exactly. Sorry i got carried away but nokiabot's display of ignorance was a stroke against my fur. I can't stand for spreading such nonsense.

Quote:

I think rather than the 12-19 power level the actual mA values makes more sense.
That sounds like a good idea. Is it practical? Is the mapping between the numbers and mA available?

(I should really get my posterior in gear and write my own first app. It's a shame to admit that I actually write software for a living yet I haven't passed beyond my "hello world" program on Maemo.)

Wikiwide 2013-06-01 02:12

Re: [Announce] Lanterne - an app for experimenting with the flash LEDs
 
Well, I personally hope that Lanterne will leave anti-camera-launch functions to Camera-Lens-Launcher. Still, it's your choice.
Best wishes.

Copernicus 2013-06-01 02:13

Re: [Announce] Lanterne - an app for experimenting with the flash LEDs
 
Quote:

Originally Posted by pichlo (Post 1348520)
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.

Copernicus 2013-06-01 02:19

Re: [Announce] Lanterne - an app for experimenting with the flash LEDs
 
Quote:

Originally Posted by Wikiwide (Post 1348522)
Well, I personally hope that Lanterne will leave anti-camera-launch functions to Camera-Lens-Launcher.

Yeah, I've gotta admit trying to mess with the camera-launch is, well, icky. :) The way that Camera-Lens-Launcher does it is just downright ugly, but so far as I can tell, it's probably the best way out there right now. I'm beginning to agree that I should just let them take care of it... :)

chill 2013-06-01 03:33

Re: [Announce] Lanterne - an app for experimenting with the flash LEDs
 
There was also flashlight-extra-gtk, a utility to select between flashlight and camera on cover open. Have you checked that, too?

nokiabot 2013-06-01 08:41

Re: [Announce] Lanterne - an app for experimenting with the flash LEDs
 
I get it i need to provide values more precisely here yeah i know the diff :)

sixwheeledbeast 2013-06-01 09:33

Re: [Announce] Lanterne - an app for experimenting with the flash LEDs
 
version 0.5.0 :)

Quick update.
Your settings page is no longer portrait friendly.

A preference option to quit application on shutter close would be handy if possible.

Red led is useful in the dark. As are the mA per setting values.

Sorry if you have mentioned this but at a quick check I couldn't see it. What current are you running torch mode at?


All times are GMT. The time now is 00:22.

vBulletin® Version 3.8.8