Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1379769
| From | Pavel Machek <pavel@ucw.cz> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v5 1/4] leds: core: add generic support for RGB Color LED's |
| Date | 2016-04-15 14:00 +0200 |
| Message-ID | <roazL-2oI-5@gated-at.bofh.it> (permalink) |
| References | (5 earlier) <rkSpI-1RZ-15@gated-at.bofh.it> <rlp2j-13g-35@gated-at.bofh.it> <rlJDH-8aP-9@gated-at.bofh.it> <rm3Cr-7IV-13@gated-at.bofh.it> <rn0M9-3h8-7@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Hi! > >>How about implementing patterns as a specific typer of triggers? > >>Let's say we have ledtrig-rgb-pattern: > > > >Well, we'd need ledtrig-rgb-pattern-1, ledtrig-rgb-pattern-2, ... , as we > >can have more than one rgb led. But yes. > > Triggers can have many listeners, i.e. led_trigger_event() sets > brightness on all LED class devices registered on given trigger. > We could have led_trigger_rgb_event() that would set brightness > on all groups-of-three LEDs registered on given rgb-trigger. I do not understand that. > I agree that ledtrig-rgb-pattern-1, ledtrig-rgb-pattern-2, etc. would > be also needed to add a capability of setting different colors on > different LED devices. Ok. > >For patterns, I'd suggest array of (r g b time) values. > > > >Pattern engines can do stuff like "slowly turn LED from off to red, then switch color to > >white, then slowly turn it to yellow, then turn it off at once" with defined speeds > >for "slowly" and option of either linear on non-linear brightness ramping. > > > >The last option might be a bit too much, but I believe we should support the rest. > > Yes, that's an interesting idea. It also turns out that trigger based > patterns could be also used for defining generic patterns for a group > of monochrome LEDs. Yes, controlling monochrome LEDs synchronously is another task for patterns. Actually, N900 uses that to control 6 keyboard backlight LEDs synchronously... and yes, it would be somehow nice to preserve this functionality. Best regards, Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: [PATCH v5 1/4] leds: core: add generic support for RGB Color LED's Jacek Anaszewski <jacek.anaszewski@gmail.com> - 2016-04-04 23:40 +0200
Re: [PATCH v5 1/4] leds: core: add generic support for RGB Color LED's Pavel Machek <pavel@ucw.cz> - 2016-04-05 11:10 +0200
Re: [PATCH v5 1/4] leds: core: add generic support for RGB Color LED's Jacek Anaszewski <jacek.anaszewski@gmail.com> - 2016-04-05 21:50 +0200
Re: [PATCH v5 1/4] leds: core: add generic support for RGB Color LED's Heiner Kallweit <hkallweit1@gmail.com> - 2016-04-05 22:50 +0200
Re: [PATCH v5 1/4] leds: core: add generic support for RGB Color LED's Jacek Anaszewski <jacek.anaszewski@gmail.com> - 2016-04-06 00:20 +0200
Re: [PATCH v5 1/4] leds: core: add generic support for RGB Color LED's Pavel Machek <pavel@ucw.cz> - 2016-04-06 11:20 +0200
Re: [PATCH v5 1/4] leds: core: add generic support for RGB Color LED's Pavel Machek <pavel@ucw.cz> - 2016-04-06 11:20 +0200
Re: [PATCH v5 1/4] leds: core: add generic support for RGB Color LED's Pavel Machek <pavel@ucw.cz> - 2016-04-06 11:00 +0200
Re: [PATCH v5 1/4] leds: core: add generic support for RGB Color LED's Jacek Anaszewski <jacek.anaszewski@gmail.com> - 2016-04-06 12:00 +0200
Re: [PATCH v5 1/4] leds: core: add generic support for RGB Color LED's Pavel Machek <pavel@ucw.cz> - 2016-04-07 22:50 +0200
Re: [PATCH v5 1/4] leds: core: add generic support for RGB Color LED's Jacek Anaszewski <jacek.anaszewski@gmail.com> - 2016-04-08 20:50 +0200
Re: [PATCH v5 1/4] leds: core: add generic support for RGB Color LED's Pavel Machek <pavel@ucw.cz> - 2016-04-09 18:10 +0200
Re: [PATCH v5 1/4] leds: core: add generic support for RGB Color LED's Jacek Anaszewski <j.anaszewski@samsung.com> - 2016-04-12 09:20 +0200
Re: [PATCH v5 1/4] leds: core: add generic support for RGB Color LED's Pavel Machek <pavel@ucw.cz> - 2016-04-15 14:00 +0200
Re: [PATCH v5 1/4] leds: core: add generic support for RGB Color LED's Jacek Anaszewski <j.anaszewski@samsung.com> - 2016-04-18 11:20 +0200
csiph-web