indicator/gpio

Example of the component espressif/led_indicator v1.1.0

LED Indicator WS2812

  • Support ON/OFF

Hardware Required

  • LED

Configure the project

Plaintext

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.1.0:indicator/gpio"

or download archive (~2.71 KB)