Repository navigation
Releases
Releases · alunit3/ServoESP32
v1.1.3
Changes
ESP32 Arduino core 3.x / 4.x support
- Use \ledcAttachChannel()\ / \ledcDetach()\ / \ledcWrite(pin, ...)\ on core >= 3.0.0, keeping the legacy \ledcSetup()\ / \ledcAttachPin()\ / \ledcWrite(channel, ...)\ API on older cores (fixes #2).
- Clamp LEDC timer resolution to \SOC_LEDC_TIMER_BIT_WIDTH\ so chips with fewer than 16 bits (e.g. ESP32-S3's 14-bit timers) work correctly (fixes #3).
Other
- Default pulse widths updated to 500 / 2500 us.
- Fixed a _channe\ typo in the legacy \ledcWrite\ calls.
- \detach()\ now resets the channel state.
- Docs, C++17 build standard, and clang-format cleanup.
Verified builds
- esp32dev — Arduino core 3.x and 4.x
- esp32-s2, esp32-s3, esp32-c3 — Arduino core 3.x
- All five examples compile.