Conversation
PR Summary
|
|
This has become pretty massive but it's also now very functionally complete.
|
|
the build errors are changed function names int he sample app. I'll fix these in ab it. |
Picks up refactor/api-rename merge (PR SmingHub#14): unify fade API to fadeChan/fadePercentChan with queue and cie boolean params.
Summary
This PR adds Esp32HardwarePwm, a comprehensive C++ wrapper for the ESP32 LEDC PWM peripheral, to Arch/Esp32/Components
Motivation
The ESP32 LEDC hardware is significantly more capable than the ESP8266 PWM — it supports up to 20-bit resolution, frequencies up to 40 MHz, hardware-accelerated linear fading, and phase shifting across multiple independent timer+channel groups. The pre-existing HardwarePWM API surface does not expose these capabilities on Esp32. This component provides a native Esp32-specific driver that takes full advantage of the hardware.
Features
CYCLIC mode: loops the entry set endlessly, fires onCyclicWrap each loop, requires explicit startQueue() after seeding