Subject: Re: Wifi & LEDs
To: Christopher Schultz <christopher.d.schultz@comcast.net>
From: Alex Pelts <alexp@broadcom.com>
List: port-cobalt
Date: 06/22/2005 12:57:31
I do not believe you can easy control intensity with software as it is
only one bit control (on/off). You could utilize PWM to average current
and therefore achieve the desired intensity. For that you will need to
have high resolution timer available and I don't know how good is NetBSD
with this type of things. You can always run a process at high priority
to do this but it will just consume the cpu cycles and heat up the qube.
In any event I do not believe that it is worth the effort.
By the way I mount things inside the cube on the fan screws. Just drill
a hole in your pcb and attach it to the fan screw with a small nut.
Thanks,
Alex
Christopher Schultz wrote:
> All,
>
>
>>I was planning on doing this to disable leds at night [...]
>
>
> A friend and I rigged a simple photoresistor (available dirt cheap from
> Radio Shack) on mine that would dim the LED on the front when the lights
> weren't on (such as at night, when the LED generated a TON of light). It
> worked pretty well, except that there's no good place to mount anything
> like that on the Qube.
>
> I would love to hear if anyone has done anything with the LED
> software-wise; especially if anyone knows how to control the intensity
> (=voltate) of the LED with software.
>
> -chris