Re: best way to handle LEDs

Pavel Machek
2005-11-02T21:14:10Z

Hi!

> > yellow off: not charging
> > yellow on: charging
> > yellow fast blink: charge error
> >
> > I think even slow blinking was used somewhere. I have some code from
> > John Lenz (attached); it uses sysfs interface, exports led collor, and
> > allows setting different frequencies.
> >
> > Is that acceptable, or should some other interface be used?
>
> IMHO reducing digital outputs to LEDs goes not far enough. All System-
> on-Chip CPUs have General Purpose I/O pins today, which can act as
> inputs or outputs and may be used for LEDs, matrix keyboard lines,

We have some leds that are *not* on GPIO pins (like driven by
ACPI). We'd like to support those, too.
Pavel
--
Thanks, Sharp!