The LED provides a convenient and thread-safe wrapper around the ESP-IDF LEDC perhipheral.
It allows for both instant and hardware-based timed changing (fading) of duty
cycle (in floating point percent [0,100]
).
The example shows how to use the espp::Led
class to control the
LED using the ESP32 hardware.
idf.py add-dependency "espp/led^1.0.11"