# LED

> If you are using Linux as your kernel on a SoC design, you’ll be glad to know that it has an entire subsystem dedicated to LEDs! [Fabio Baltieri Linux LED Subsystem](https://fabiobaltieri.com/2011/09/21/linux-led-subsystem/)
>
> [Linux Kernel GPIO Documentation](https://www.kernel.org/doc/Documentation/gpio/00-INDEX)

```bash
menuconfig LEDS_TRIGGERS
    bool "LED Trigger support"
    depends on LEDS_CLASS
    help
      This option enables trigger support for the leds class.
      These triggers allow kernel events to drive the LEDs and can
      be configured via sysfs. If unsure, say Y.

if LEDS_TRIGGERS

...

config LEDS_TRIGGER_HEARTBEAT
    tristate "LED Heartbeat Trigger"
    depends on LEDS_TRIGGERS
    help
      This allows LEDs to be controlled by a CPU load average.
      The flash frequency is a hyperbolic function of the 1-minute
      load average.
      If unsure, say Y.

...
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://theiotlearninginitiative.gitbook.io/embedded-linux/subsystems/led.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
