Hey, it already does that!

Posted by: mlord

Hey, it already does that! - 06/03/2002 12:13

And here I was, about to implement a new config.ini option so that I could have my illuminated buttons turn completely off when the unit is in standby in the home dock, and stay on at low illumination when the unit is in the car.

The existing option "buttonled_off=n" currently applies to both situations. So, I started coding (pretty simple to add), only to discover that there's already a very good way to do it, no new code needed.

Any takers.. (pretty simple, actually) ?
Posted by: tfabris

Re: Hey, it already does that! - 06/03/2002 12:17

Is there an @home and @car option in there already? And you could put the off level in there? Or maybe you set the @work and @home options to off or something?
Posted by: mlord

Re: Hey, it already does that! - 06/03/2002 12:20

>Is there an @home and @car option in there already?

I can't believe I get to post this: Use the FAQ, Luke..
Posted by: tfabris

Re: Hey, it already does that! - 06/03/2002 12:22

Yeah, I looked, you just use @AC and @DC to set the off-level.
Posted by: tfabris

Re: Hey, it already does that! - 06/03/2002 12:24

So what about having it detect the state of the dimmer line, and then reading the display dimmer percentage from flash, and having the buttons dim at the same increment as the display when your headlights go on?
Posted by: mlord

Re: Hey, it already does that! - 06/03/2002 12:25

But of course:

;@AC buttonled_off=0
;@DC buttonled_off=1 ; or 2, or 3, .. or 7

Darn.. 'guess I don't get to implement it (again).

-ml
Posted by: Yang

Re: Hey, it already does that! - 06/03/2002 13:08

<nit pick>
Perhaps the buttenled_off setting should be renamed to buttonled_offlevel or buttonled_standby[level]. The _off suffix implies that it's a boolean to turn the button LEDs off.
</nit pick>

Just something I noticed when I saw _off taking a value of >1..
Posted by: mlord

Re: Hey, it already does that! - 06/03/2002 15:49

Too wordy for me.