indicator/gpio

Example of the component espressif/led_indicator v1.0.0
## LED Indicator WS2812

* Support ON/OFF

### Hardware Required

* LED

### Configure the project

```
idf.py menuconfig
```

* Set `EXAMPLE_GPIO_NUM` to set led gpio.
* Set `EXAMPLE_GPIO_ACTIVE_LEVEL` to set gpio level when led light

### How to USE

If the macro `EXAMPLE_ENABLE_CONSOLE_CONTROL` is enabled, please use the following method for control; otherwise, the indicator lights will flash sequentially in order.

* Help
    ```shell
    help
    ```

* Immediate display mode, without considering priority.
    ```shell
    led -p 0 # Start
    led -p 2 # Start
    led -x 2 # Stop
    ```

* Display mode based on priority.
    ```shell
    led -s 0 # Start 0
    led -s 2 # Start 2
    led -e 2 # Stop 2
    ```

Note:
> Support replacing the LED with an active buzzer to achieve the functionality of a buzzer indicator.

To create a project from this example, run:

idf.py create-project-from-example "espressif/led_indicator^1.0.0:indicator/gpio"

or download archive (57 bytes)