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.
578972c307a99a8a1d9fc7ef2fe5ea6f2dc04e59
idf.py add-dependency "espp/led^1.0.22"