Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1370913
| From | Jacek Anaszewski <jacek.anaszewski@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v5 1/4] leds: core: add generic support for RGB Color LED's |
| Date | 2016-04-04 23:40 +0200 |
| Message-ID | <rkko2-VB-9@gated-at.bofh.it> (permalink) |
| References | <rj7Md-56S-5@gated-at.bofh.it> <rjcsz-5T-21@gated-at.bofh.it> <rjeE2-1I4-9@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Hi Pavel, On 04/01/2016 11:18 PM, Pavel Machek wrote: > Hi! > >>>> It would have the same downsides as in case of having r, g and b in >>>> separate attributes, i.e. - problems with setting LED colour in >>>> a consistent way. This way LED blinking in whatever colour couldn't >>>> be supported reliably. It was one of your primary rationale standing >>>> behind this design, if I remember correctly. Second - what about >>>> triggers? We've had a long discussion about it and this design turned >>>> out to be most fitting. >>> >>> Are on/off triggers really that useful for a LED that can produce 16 >>> million colors? >>> >>> I believe we should support patterns for RGB LEDs. Something like >>> [ (time, r, g, b), ... ] . Ok, what about this one? >>> >>> Lets say we have >>> >>> /sys/class/pattern/lp5533::0 >>> /sys/class/pattern/software::0 >>> >>> /sys/class/led/n900::red ; default trigger "lp5533::0:0" >>> /sys/class/led/n900::green ; default trigger "lp5533::0:1" >>> /sys/class/led/n900::blue ; default trigger "lp5533::0:2" >>> >>> Normally, pattern would correspond to one RGB LED. We could have >>> attribute "/sys/class/pattern/lp5533::0/color" containing R,G,B for >>> this pattern. Could you give an example on how to set a color for RGB LED using this interface? Would it be compatible with LED triggers? Where the "pattern" class would be implemented? >> This involves the same issue you were opposed to: three values per >> sysfs attribute. > > And solves a lot of other things. Like actually being backwards > compatible. > > And yes, it involves three values in a file, but now it is array of > led brightnesses, and that might actually be acceptable. (At least the > values have uniform meaning). > > Plus, it is not "issue you were opposed to" it is "something that is > not permitted by sysfs maintainers". -- Best regards, Jacek Anaszewski
Back to linux.kernel | Previous | Next — 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
csiph-web