linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
To: simon@mungewell.org
Cc: linux-input@vger.kernel.org, Jiri Kosina <jkosina@suse.cz>,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2] HID: add ThingM blink(1) USB RGB LED support
Date: Mon, 21 Jan 2013 14:31:55 -0500 (EST)	[thread overview]
Message-ID: <1270977623.602972.1358796715392.JavaMail.root@mail.savoirfairelinux.com> (raw)
In-Reply-To: <d76e4c014234c2f0e8ef1328f0e7572a.squirrel@mungewell.org>

Hi Simon,

> > +++ b/Documentation/ABI/testing/sysfs-driver-hid-blink1
> > @@ -0,0 +1,23 @@
> > +What:		/sys/class/leds/blink(1)::<serial>/rgb
> > +Date:		January 2013
> > +Contact:	Vivien Didelot <vivien.didelot@savoirfairelinux.com>
> > +Description:	The ThingM blink(1) is an USB RGB LED. The color
> > notation is
> > +		3-byte hexadecimal. Read this attribute to get the last set
> > +		color. Write the 24-bit hexadecimal color to change the current
> > +		LED color. The default color is full white (0xFFFFFF).
> > +		For instance, set the color to green with: echo 00FF00 > rgb
> > +
> 
> Shouldn't the name presented in the sys/class/leds directories change
> appropriately too?

The directory name for the device under /sys/class/leds is "blink(1)::<serial>",
where <serial> is the last 4 digits of the device serial number (the first 4
digits are always the same: "1A00"). For instance, "blink(1)::1234".
Let me know if I misunderstood your question.

Thanks,
Vivien

  reply	other threads:[~2013-01-21 19:31 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-21 18:18 [PATCH v2] HID: add ThingM blink(1) USB RGB LED support Vivien Didelot
2013-01-21 18:40 ` simon
2013-01-21 19:31   ` Vivien Didelot [this message]
2013-01-22 10:25     ` Jiri Kosina
2013-01-22 13:39       ` Vivien Didelot
2013-01-22 13:45         ` Jiri Kosina
2013-01-22 14:15           ` Vivien Didelot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1270977623.602972.1358796715392.JavaMail.root@mail.savoirfairelinux.com \
    --to=vivien.didelot@savoirfairelinux.com \
    --cc=jkosina@suse.cz \
    --cc=linux-input@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=simon@mungewell.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).