Plaintext
idf.py menuconfig
EXAMPLE_GPIO_NUM
to set led gpio.EXAMPLE_GPIO_ACTIVE_LEVEL
to set gpio level when led lightIf 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"