The Following 47 Users Say Thank You to Copernicus For This Useful Post: | ||
acrux, ade, chill, DA5, dcaliste, disappear, Dongle Fongle, dzano, Estel, Fatalist, foobar, fw190, Garrett_PL, HtheB, impeham, Jordi, king Ralphred, kinggo, kureyon, lorenzo, malfunctioning, marxian, melisa queen, mrsellout, nokiabot, panjgoori, peterleinchen, phapsubongtoi, pichlo, pistachio, qwazix, rcolistete, reinob, RiD, rotoflex, sada11, saponga, sixwheeledbeast, sLumPia, sowwhatyoureap, ThomasAH, Tiran, whayong, Wikiwide, zlatokosi, ZogG |
|
2013-05-26
, 21:57
|
Posts: 2,290 |
Thanked: 4,134 times |
Joined on Apr 2010
@ UK
|
#2
|
The Following 7 Users Say Thank You to sixwheeledbeast For This Useful Post: | ||
|
2013-05-26
, 22:03
|
|
Posts: 4,118 |
Thanked: 8,901 times |
Joined on Aug 2010
@ Ruhrgebiet, Germany
|
#3
|
I have always wished to be able to type out and flash morse code with the flashlight.
The Following User Says Thank You to peterleinchen For This Useful Post: | ||
|
2013-05-26
, 22:06
|
|
Posts: 1,986 |
Thanked: 7,698 times |
Joined on Dec 2010
@ Dayton, Ohio
|
#4
|
I have always wished to be able to type out and flash morse code with the flashlight. Possible?
The Following 4 Users Say Thank You to Copernicus For This Useful Post: | ||
|
2013-05-27
, 00:39
|
|
Posts: 1,986 |
Thanked: 7,698 times |
Joined on Dec 2010
@ Dayton, Ohio
|
#5
|
|
2013-05-27
, 04:36
|
|
Posts: 1,239 |
Thanked: 1,278 times |
Joined on Aug 2011
@ Balochistan
|
#6
|
The Following 4 Users Say Thank You to panjgoori For This Useful Post: | ||
|
2013-05-27
, 05:05
|
Posts: 330 |
Thanked: 556 times |
Joined on Oct 2012
|
#7
|
|
2013-05-27
, 05:10
|
Posts: 330 |
Thanked: 556 times |
Joined on Oct 2012
|
#8
|
Ok, version 0.1.0 of Lanterne is now on its way up to extras-devel. From the pull-down menu, you can now select "Morse Code", which will bring up a window with a text entry field; type your desired text into this field, click "Transmit Code", and the LED will flash out the characters for you.
There is also a "Dot Duration" spinbox; you can use this to determine the length of a dot. (A dash is three dots, dashes and dots are separated by a dot-length pause, characters are separated by a 3-dot-length pause, and words are separated by a 7-dot-length pause.)
This is just standard Morse alphabet, taken off of the Wiki page for Morse code. I haven't tried to add any internationalization or shortcuts or whatever (and I probably don't know enough to do it right anyway). But, at least, it should support the basics.
Now, the _really_ interesting app addition imho would be to have the N900 read incoming morse code, not just transmit it. Dunno just how much effort that would take, though...
The Following 3 Users Say Thank You to malfunctioning For This Useful Post: | ||
|
2013-05-27
, 09:07
|
Posts: 2,290 |
Thanked: 4,134 times |
Joined on Apr 2010
@ UK
|
#9
|
It shouldn't be hard, at least in terms of turning the LED on and off. (I have to admit I never learned morse code myself, so I probably don't know all the tricks involved; I know a bit about how letters and numbers are keyed, but I think there's something more intricate involved when keying out full words and sentences...)
In any case, hooking up keyboard keys to sets of LED pulses shouldn't be too hard. I guess you could also feed text files into the thing and get series of pulses out...
It'd probably be easier to work with this using the "torch" mechanism rather than the "flash" mechanism, as I'd have finer control over "torch" timing; would you need the highest-level brightness for your morse code flashes?
The Following 5 Users Say Thank You to sixwheeledbeast For This Useful Post: | ||
|
2013-05-27
, 09:52
|
|
Posts: 1,986 |
Thanked: 7,698 times |
Joined on Dec 2010
@ Dayton, Ohio
|
#10
|
The Following 4 Users Say Thank You to Copernicus For This Useful Post: | ||
Tags |
flashlight, lanterne, morse code, nokia n900, strobe light, torch |
|
The LED power, the duration of the strobe, and the pause between strobes can be modified.
Warning: I am not an expert on the flash LEDs! Although I have made an effort to ensure that only safe values can be entered for these parameters, I cannot say for certain that this app will not damage your LEDs. Use with caution!
At this point, several features have been added:
* A Morse code flasher, allowing you to type in a message or load a text file to be transmitted. The dot duration is configurable.
* A continuous SOS beacon.
* A continuous pulse (essentially, Morse E rather than SOS).
* Support for use with the red (indicator) LED.
Lanterne now recognizes the status of the camera cover, and avoids turning on the LEDs if it is closed (and will turn off the LEDs if the user closes the cover). Also, it can now exit when the user closes the camera cover.
Version 0.5.6 has been added to the end of this post, as well as submitted to the extras-devel repository.
Lanterne is open-source software, released under the GPL version 2 (or greater). You can find the source code at Github:
https://github.com/jpietrzak8/Lanterne
Last edited by Copernicus; 2014-08-16 at 14:51. Reason: Version 0.5.6 now available.