Re: [PATCH RFC] leds: Add status code trigger

From: Raphaël Teysseyre
Date: Thu Mar 12 2015 - 02:55:06 EST


> > For a heartbeat-like pattern :
> > 0 1000
> > 255 100
> > 0 100
> > 255 100
>
> That would be "slowly go to zero intensity, quickly go to max
> intensity, to zero, to maximum". If you wanted to turn the LED on/off
> without going through partial brightnesses, you'd do
>
> 0 1000
> 255 0
> 255 100
> 0 0
> 0 100
> 255 0
> 255 100
> 0 0
>
Okay, now I get why there were zero-time lines in your second example.

> > pattern_repeat : repeat this pattern indefinitely ?
> > 1 -> yes, 0 -> no
> >
> > pattern_once : if pattern_repeat = 0, writing 1 to this
> > file makes the pattern run once .
>
> I'd do attribute "repeat" with number of repetitions, or -1 == "repeat
> forever" default value.
>

Yes that's better.

Best regards,
RaphaÃl



--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/