LED Unit Tool Component For ESP32
- Open or close LED
- SOS Animation
- More...
git submodule add git@github.com:myfreax/esp32-led.git components/led
#include "led.h"
void app_main(void) {
led_config(1ULL << CONFIG_LED_USB_PIN | 1ULL << CONFIG_LED_AC_PIN |
1ULL << CONFIG_LED_DC_PIN);
gpio_set_level(led_pin, 0)
}
The ESP32 Example Project demonstrates how to use IDF framework build application of reusable component