maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [in devel] LED pattern clock while on charger (https://talk.maemo.org/showthread.php?t=52967)

swst 2010-05-19 13:51

Re: LED clock
 
I reckon this is a great idea, but the morse code seems a bit complicated.
I realise its not so accurate but I would be happy just knowing what hour it is, 3 flashes would be 3 am/pm ( i say pm cos i work nights too!)

Cheers
swst

F2thaK 2010-05-19 13:57

Re: LED clock
 
do it in 24 hr time.......... its 2400..... so 24 flashes

IDis 2010-05-19 16:39

Re: LED clock
 
excellent! Thanks! Very grateful to you

PS. how to restart LED Clock after reboot?

Several requests:
put a pause of 2 seconds between showing the time
allocate each 5 signal (brightness level or color)
Dozens little bit longer

Quote:

do it in 24 hr time.......... its 2400..... so 24 flashes
no 24 flashes
Only: 2 long flashes and 4short flashes.

pH5 2010-05-19 19:06

Re: LED clock
 
Quote:

Originally Posted by IDis (Post 666317)
how to restart LED Clock after reboot?

If you have rootsh installed, use "vi /etc/event.d/chledclk" to replace the "start on started mce" line with "start on started hildon-desktop". Or start it manually with "start chledclk".

Edit: This should be fixed in version 0.0.2-1.

Quote:

Originally Posted by IDis (Post 666317)
put a pause of 2 seconds between showing the time
allocate each 5 signal (brightness level or color)
Dozens little bit longer

The timing can be made configurable, but a brighter 5th flash would make some patterns too long to fit into a single engine (16 commands). For example, the 19:55h pattern right now would already be:
Code:

9d80 4000 087f 09ff 047f 05ff a404 11ff 047f 05ff a208 043f 057f 7105 0000

blue_led 2010-05-19 19:58

Re: LED clock
 
if only one color is needed read this
http://talk.maemo.org/showpost.php?p...6&postcount=99
because only 14 commands are available we can make ( at first sight ) 7 loops like this ( 23 : 55 )
0 >> 9d80
1 >> e104 call & wait second engine
2 >> repeat step 2 for x times ( a081 for 2 cycles)
3 >> 7f02 interdigits pause
4>> e104 call & wait second engine
5>> repeat step 4 for Y times ( a104 for 3 cycles second digit )
6 >> 7f02 interdigit pause
7 >> e104 call & wait second engine
8>> repeat step 7 for x times ( a207 for 5 cycles third digit )
9 >> 7f02 interdigits pause
10 >> e104 call & wait second engine
11 >> repeat step 10 for x times ( a20a for 5 cycles four digit)
12 >> 7f00 last digit pause
13 >> a28c cycle for more pause
14 empty :)
15 >> 0000 reset

the second engine

9d80
087f pulse up
097f pulse down
e082 trig & wait from engine 1
4000 just in case ....
0000
it is a lot of command available even for black steps

engine 1 jump to second engine steps are the same e104
branch command a000 + 80 * times + start_loop_step_number ( in hexa )

for morse code lovers ... SOS pattern
Code:

R;9d80e104150fa101e104a104150fa104e104150fa1087f0b0000;9d80e08040ff140f4000e0020000

chemist 2010-05-21 11:16

Re: [in devel] LED pattern clock while on charger
 
moved to Apps

The Morse code idea is lovely! Having it one at a time makes it 20 signals long plus 3 gaps.

What about binary/hex? For digit by digit you only need 4 times 4 signals. For a 12hour pattern you need 11 and for 24hour pattern 12, so having the 12/24h pattern is the shortest. For hex you could use Morse code, that would be just one pattern at a max of 10 flashes and one gap.

rash.m2k 2010-05-21 11:28

Re: [in devel] LED pattern clock while on charger
 
Not that I don't appreciate you guys trying to make this app - but I don't really see the point! Morse code is so long and you need to concentrate and count the dots/dashes!

A better idea would be to create and app that every 20minutes or so slowly increases the display brightness and shows the time then slowly disappears.

This way it's not disturbing, and doesn't require much concentration to see the time!

mannakiosk 2010-05-21 11:36

Re: [in devel] LED pattern clock while on charger
 
Quote:

Originally Posted by rash.m2k (Post 669111)
Not that I don't appreciate you guys trying to make this app - but I don't really see the point! Morse code is so long and you need to concentrate and count the dots/dashes!

A better idea would be to create and app that every 20minutes or so slowly increases the display brightness and shows the time then slowly disappears.

This way it's not disturbing, and doesn't require much concentration to see the time!

But that might require me to stare into the darkness for close to 20 minutes in the middle of the night if I wake up and wonder what time it is.

Andrew_b 2010-05-21 11:45

Re: LED clock
 
Quote:

Originally Posted by swst (Post 666069)
I reckon this is a great idea, but the morse code seems a bit complicated.
I realise its not so accurate but I would be happy just knowing what hour it is, 3 flashes would be 3 am/pm ( i say pm cos i work nights too!)

Cheers
swst

I like this as a rough idea of the time. It is likely to be used in the small hours by the vast majority, so perhaps avoid 24hr clock, but the LED colour could be used to interpret this. Seriously, though. If you don't know already if it's am or pm right now, you need to get out more! The hours could be represented by long flashes, followed by either one, two, three or four short flashes to signify which quarter of the hour you're in e.g. flaaash, flaaash, flash, flash would mean between quarter past and half past two.

rash.m2k 2010-05-21 11:57

Re: LED clock
 
Quote:

Originally Posted by Andrew_b (Post 669130)
I like this as a rough idea of the time. It is likely to be used in the small hours by the vast majority, so perhaps avoid 24hr clock, but the LED colour could be used to interpret this. Seriously, though. If you don't know already if it's am or pm right now, you need to get out more! The hours could be represented by long flashes, followed by either one, two, three or four short flashes to signify which quarter of the hour you're in e.g. flaaash, flaaash, flash, flash would mean between quarter past and half past two.

This is probably a better idea! Morse code was a bad idea.

But using different colours to represent times would be better, in total we would need 4 different colors - (2^4 = 16 > 12) plus 2 colours for the minute hand.

We have blue, green, orange and white as four colours.

We can flash the four colours quickly - then pause for 1/2 second then flash two colours representing 15, 30, 45, 60.


All times are GMT. The time now is 10:40.

vBulletin® Version 3.8.8