sysfs-driver-hid-thingm 1.1 KB

1234567891011121314151617181920212223
  1. What: /sys/class/leds/blink1::<serial>/rgb
  2. Date: January 2013
  3. Contact: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
  4. Description: The ThingM blink1 is an USB RGB LED. The color notation is
  5. 3-byte hexadecimal. Read this attribute to get the last set
  6. color. Write the 24-bit hexadecimal color to change the current
  7. LED color. The default color is full white (0xFFFFFF).
  8. For instance, set the color to green with: echo 00FF00 > rgb
  9. What: /sys/class/leds/blink1::<serial>/fade
  10. Date: January 2013
  11. Contact: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
  12. Description: This attribute allows to set a fade time in milliseconds for
  13. the next color change. Read the attribute to know the current
  14. fade time. The default value is set to 0 (no fade time). For
  15. instance, set a fade time of 2 seconds with: echo 2000 > fade
  16. What: /sys/class/leds/blink1::<serial>/play
  17. Date: January 2013
  18. Contact: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
  19. Description: This attribute is used to play/pause the light patterns. Write 1
  20. to start playing, 0 to stop. Reading this attribute returns the
  21. current playing status.