lkml.org 
[lkml]   [2018]   [Oct]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v15 1/2] leds: core: Introduce LED pattern trigger
Hi!

> > +
> > + The gradual dimming format of the software pattern values should be:
> > + "brightness_1 duration_1 brightness_2 duration_2 brightness_3
> > + duration_3 ...". For example:
> > +
> > + echo 0 1000 255 2000 > pattern
> > +
> > + It will make the LED go gradually from zero-intensity to max (255)
> > + intensity in 1000 milliseconds, then back to zero intensity in 2000
> > + milliseconds:
> > +
> > + LED brightness
> > + ^
> > + 255-| / \ / \ /
> > + | / \ / \ /
> > + | / \ / \ /
> > + | / \ / \ /
> > + 0-| / \/ \/
> > + +---0----1----2----3----4----5----6------------> time (s)
> > +

Ok, so I got around to testing this.

echo "0 1000 10 2550 0 1000 0 100" > pattern

makes expected pattern [ .-xXx-. ].

But when I do

echo "0 1000 10 2550 0 1000" > pattern

I only get expected pattern on the first iteration, then I get
[ Xx-. ].

I'm using led-controller:flash on nokia n900 (so everything in
software).

> OK, let's abide by constant update interval for now.
>
> Thank you for your work on this patch set throughout
> all these months. We will have -rc8, so one week of testing
> before sending upstream should be enough.
>
> Patch set applied to the for-next branch of linux-leds.git.

Thanks!
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2018-10-24 10:33    [W:0.090 / U:2.340 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site