View Single Post
Copernicus's Avatar
Posts: 1,986 | Thanked: 7,698 times | Joined on Dec 2010 @ Dayton, Ohio
#31
Originally Posted by Estel View Post
I noticed, that Morse code interpreter uses torch mode, not "flash" one.
Yeah, it saves me a heck of a lot of hassle by doing that. I'll take a look at offering a "high-power Morse code" option, but I'd prefer to stick with the torch mode for now...

a button to activate stroboscopic light without need to push button continuously
Honestly, I'd prefer not to do that. I'm just too nervous about turning Lanterne into a "N900 Self-Destruct Tool" if I did that...

I've noticed, that it's the only existing program that talks with LEDs "properly" - i.e. don't collide with other programs,
Ah, that would be the "non-blocking mode"! I was kinda amazed I could get away with using that when accessing the device driver. (If both Lanterne and another app start using the LEDs at the same time though, the results might be a little odd.)

and/or allow to enable LEDs even, if slider is closed.
I don't know if the latter was intended...
Actually, I know there's a sensor somewhere to detect whether the cover is open or not, but I don't know how to access it yet, so I kinda just didn't bother. I should probably put a test in for that sensor, but I'll make sure that it can be disabled.

So, here comes a little request - a "module" or spinoff (although, the former sounds more sane) of Lanterne, that would allow enabling and disabling torch without starting Lanterne GUI.
Shouldn't be tough. If you want, pretty much all the code involved in accessing the LEDs can be found in the LanFlashLED class, in the following files:

https://github.com/jpietrzak8/Lanter.../lanflashled.h
https://github.com/jpietrzak8/Lanter...anflashled.cpp

So you could go ahead and set up something yourself, without having to wait for me. But yeah, putting together a command-line interface to Lanterne should be a heck of a lot easier than for Pierogi, so it might not take me forever to get it done.

From different "department" and also mentioned earlier, so just to sum it in one post - request for more input options in morse interpreter, like taking input from file etc.
Ok, will do; shouldn't be too hard to read input from a file. I'll look in to what it takes...
 

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