pH5
|
2010-06-19
, 09:34
|
|
Posts: 138 |
Thanked: 375 times |
Joined on Aug 2009
@ Berlin
|
#31
|
|
2010-06-19
, 12:25
|
Posts: 207 |
Thanked: 154 times |
Joined on Nov 2009
|
#32
|
|
2010-07-01
, 21:21
|
Posts: 306 |
Thanked: 566 times |
Joined on Jan 2010
@ Romania
|
#33
|
PatternBatteryCharging=50;4;0;RgB;9d8040001600407fc000;9d804000160040ffc000
light() { echo $r > /sys/class/leds/lp5523:r/led_current echo $g > /sys/class/leds/lp5523:g/led_current echo $b > /sys/class/leds/lp5523:b/led_current } while [ 1 ];do ore=$(date +%H) minute=$(date +%M) dbus-send --system --type=method_call --dest=com.nokia.mce /com/nokia/mce/request com.nokia.mce.request.req_led_pattern_activate string:PatternBatteryCharging r=0;g=0;b=0;light for s in $ore $minute ;do b=$(expr $s % 10) a=$(expr $(expr $s - $b) / 10) for c in $a $b ;do case $c in 0)r=0;g=0;b=0;light;; 1)r=16;g=1;b=0;light;; 2)r=20;g=0;b=0;light;; 3)r=20;g=4;b=0;light;; 4)r=20;g=13;b=0;light;; 5)r=0;g=15;b=0;light;; 6)r=0;g=0;b=15;light;; 7)r=15;g=0;b=10;light;; 8)r=2;g=1;b=1;light;; 9)r=15;g=15;b=14;light;; esac sleep 1 done;done; dbus-send --system --type=method_call --dest=com.nokia.mce /com/nokia/mce/request com.nokia.mce.request.req_led_pattern_deactivate string:PatternBatteryCharging sleep 5; done;done
|
2010-10-12
, 00:41
|
Posts: 54 |
Thanked: 53 times |
Joined on Feb 2010
@ Sweden
|
#34
|
|
2010-10-12
, 11:21
|
Posts: 569 |
Thanked: 462 times |
Joined on Jul 2010
@ USA
|
#35
|
So I think it's better just flash it that many times as hours in one color, then tens of minutes in other, then units of minutes in other. Like red-red-red-red blue-blue-blue yellow-yellow-yellow-yellow-yellow would be 4:35. Easy to read.
|
2010-10-12
, 12:33
|
Posts: 1,522 |
Thanked: 392 times |
Joined on Jul 2010
@ São Paulo, Brazil
|
#36
|
6 Digits total (hours, minutes and seconds, with zero padding where necessary)
Before each digit, a white blinking pattern, all white patterns have the same length, but blink a different amount of times (all lit for zero, and 5 blinks for fifth)
Each digit is represented as a hue, from red to violet, the rainbow scaled for the range of that digit (or optionally made absolute from 0 to 9 for all digits)
Or perhaps, give a noticeable blink in full red for hours, full green for minutes and full blue for seconds before the two digits of each.
Each digit pair is one of the color components, all played simultaneously and in synch.
For minutes and seconds, blink 0 to 9 times, equal durations for on and off, the amount of times it went on is how many 10s, if it's past *5s flip the on and off moments ( 180 degrees off phase i think)
For hours, blink 0 to 10 for the hours from midnight to 10 am, then for divide the on time into two faster blinks, with the same amount of off time, and blink 1 to 10 for for 11 am to 8 pm, now make the blink be 3 instead of two and do 1 to 3 for 9 pm to 11 pm
Get the number of seconds in a day, in binary
Split the binary digits into 3 equally sized groups (or as close to equal you can)
Give each group to one of the color components, and have them read the ones and zeros as on and off (with a user setable duration per bit) simultaneously and in synch
Optionally pause and repeat the reading after the first read to for confirmation.
edit: perhaps to make it easy to identify each individual bit when more than one 1 goes in sequence, briefly turn off the LED between each digit (also take that same time after a zero so all bits stay aligned)