espressif/pwm_audio

uploaded 3 months ago
PWM audio output driver for ESP32 series Socs

readme

Component: Button

documentation

The PWM audio function uses the internal LEDC peripheral in ESP32 to generate PWM audio, which does not need an external audio Codec chip.

Features

  • Allows any GIPO with output capability as an audio output pin
  • Supports 8-bit ~ 10-bit PWM resolution
  • Supports stereo
  • Supports 8 ~ 48 KHz sampling rate

Here is a simple player example that uses PWM to output audio.

Links:

Supports all targets

License: Apache-2.0

To add this component to your project, run:
idf.py add-dependency espressif/pwm_audio^1.0.0
or download archive

Dependencies

  • ESP-IDF >=4.0