From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752975AbbCLGzC (ORCPT ); Thu, 12 Mar 2015 02:55:02 -0400 Received: from mail-wg0-f41.google.com ([74.125.82.41]:35953 "EHLO mail-wg0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752982AbbCLGzA (ORCPT ); Thu, 12 Mar 2015 02:55:00 -0400 Subject: Re: [PATCH RFC] leds: Add status code trigger From: =?ISO-8859-1?Q?Rapha=EBl?= Teysseyre To: Pavel Machek Cc: Joe Xue , Bryan Wu , "rpurdie@rpsys.net" , Linux LED Subsystem , lkml In-Reply-To: <20150311190255.GA20247@amd> References: <1424334377.11286.3.camel@localhost> <20150310080042.GA27585@amd> <20150310192226.GB11260@amd> <1426086614.59115.14.camel@localhost> <20150311190255.GA20247@amd> Content-Type: text/plain; charset="UTF-8" Date: Thu, 12 Mar 2015 07:56:00 +0100 Message-ID: <1426143360.59115.21.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.32.3 (2.32.3-34.el6) Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > 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