espressif/pwm_audio

uploaded 1 year ago
PWM audio output driver for ESP32 series Socs

readme

[![Component Registry](https://components.espressif.com/components/espressif/pwm_audio/badge.svg)](https://components.espressif.com/components/espressif/pwm_audio)

# Component: pwm_audio

[documentation](https://docs.espressif.com/projects/espressif-esp-iot-solution/en/latest/audio/pwm_audio.html)

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 ~ 16-bit PWM resolution
- Supports stereo
- Supports 8 ~ 48 KHz sampling rate

[Here](https://github.com/espressif/esp-iot-solution/tree/master/examples/audio/wav_player) is a simple player example that uses PWM to output audio.

changelog

# ChangeLog

## v1.1.1 - 2023-03-20

### Bug Fixes:

* Disable gptimer in function pwm_audio_stop and pwm_audio_deinit.

## v1.1.0 - 2023-02-20

### Enhancements:
* Support idf release/5.0
* Remove esp32xx_timer_group_struct.h

## v1.1.0 - 2022-06-21
### Enhancements:
* First submit
* Support idf release/4.4

Links

Supports all targets

License: Apache-2.0

To add this component to your project, run:

idf.py add-dependency "espressif/pwm_audio^1.1.1"

or download archive

Dependencies

  • espressif/cmake_utilities 0.*
  • ESP-IDF >=4.3
  • Stats

    • Downloaded in total
      Downloaded in total 271 times
    • Downloaded this version
      This version: 192 times

    Badge

    espressif/pwm_audio version: 1.1.1
    |