| 1 | |
| 2 |
|
| 3 | ============================================
|
| 4 | Kernel driver for STMicroelectronics LED1202
|
| 5 | ============================================
|
| 6 |
|
| 7 | /sys/class/leds/<led>/hw_pattern
|
| 8 | --------------------------------
|
| 9 |
|
| 10 | Specify a hardware pattern for the ST1202 LED. The LED controller
|
| 11 | implements 12 low-side current generators with independent dimming
|
| 12 | control. Internal volatile memory allows the user to store up to 8
|
| 13 | different patterns. Each pattern is a particular output configuration
|
| 14 | in terms of PWM duty-cycle and duration (ms).
|
| 15 |
|
| 16 | To be compatible with the hardware pattern format, maximum 8 tuples of
|
| 17 | brightness (PWM) and duration must be written to hw_pattern.
|
| 18 |
|
| 19 | - Brightness range: 0-255
|
| 20 | - Min pattern duration: 22 ms
|
| 21 | - Max pattern duration: 5610 ms
|
| 22 |
|
| 23 | The format of the hardware pattern values should be:
|
| 24 | "brightness duration brightness duration ..."
|
| 25 |
|
| 26 | /sys/class/leds/<led>/repeat
|
| 27 | ----------------------------
|
| 28 |
|
| 29 | Specify a pattern repeat number, which is common for all channels.
|
| 30 | Default is 1. Writing 0 is invalid. Writing -1 or 255 repeats the
|
| 31 | pattern indefinitely.
|
| 32 |
|
| 33 | This file will always return the originally written repeat number.
|