Re: LED API extension
toggle quoted messageShow quoted text
my proposal is:
typedef int (*led_api_brightness_fade(struct device *dev, u32_t led, u8_t start, u8_t stop, u32_t fade_time);
So it is similar to your approach, but the starting brightness would be part of it. With that additional parameter we don't have to track the current brightness to know whether to fade up or down for example.
I will post a PR today. Would be great, if you had a look at it. I doubt we will get it merged until friday, but it would be nice to work on it nonetheless.
On Wed, May 16, 2018 at 8:36 PM Justin <jdemarti@...> wrote: