Unoffical empeg BBS

Quick Links: Empeg FAQ | RioCar.Org | Hijack | BigDisk Builder | jEmplode | emphatic
Repairs: Repairs

Topic Options
#78114 - 06/03/2002 12:13 Hey, it already does that!
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14496
Loc: Canada
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) ?

Top
#78115 - 06/03/2002 12:17 Re: Hey, it already does that! [Re: mlord]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31600
Loc: Seattle, WA
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?
_________________________
Tony Fabris

Top
#78116 - 06/03/2002 12:20 Re: Hey, it already does that! [Re: tfabris]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14496
Loc: Canada
>Is there an @home and @car option in there already?

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

Top
#78117 - 06/03/2002 12:22 Re: Hey, it already does that! [Re: mlord]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31600
Loc: Seattle, WA
Yeah, I looked, you just use @AC and @DC to set the off-level.
_________________________
Tony Fabris

Top
#78118 - 06/03/2002 12:24 Re: Hey, it already does that! [Re: tfabris]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31600
Loc: Seattle, WA
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?
_________________________
Tony Fabris

Top
#78119 - 06/03/2002 12:25 Re: Hey, it already does that! [Re: tfabris]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14496
Loc: Canada
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

Top
#78120 - 06/03/2002 13:08 Re: Hey, it already does that! [Re: mlord]
Yang
addict

Registered: 14/01/2002
Posts: 443
Loc: Raleigh, NC
<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..

Top
#78121 - 06/03/2002 15:49 Re: Hey, it already does that! [Re: Yang]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14496
Loc: Canada
Too wordy for me.

Top