lkml.org 
[lkml]   [2013]   [Jan]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v2] HID: add ThingM blink(1) USB RGB LED support
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


\
 
 \ /
  Last update: 2013-01-21 21:22    [W:0.044 / U:0.344 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site