You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
I have searched the issue tracker for a similar issue and not found a similar issue.
General issue report
It is not clear in the documentation if this component supports mono configurations (with a single speaker). I only want to play mono wav files, and it is not clear if this is supported and if affirmative how should one configure this mode. Should I set bot L and R channels to the same GPIO? Should I set one to an invalid value (like -1)?
In the documentation and sources, there is enum pwm_audio_channel_t that has as a possible value PWM_AUDIO_CH_MONO, but I cannot see this enum used anywhere in the sources.
The text was updated successfully, but these errors were encountered:
github-actionsbot
changed the title
pwm_audio: is it possible to use for mono configurations? how?
pwm_audio: is it possible to use for mono configurations? how? (AEGHB-936)
Jan 5, 2025
Hi, @doragasu . Thank you very much for your interest in pwm_audio. If you are not using the left channel, you can set ledc_channel_left in pwm_audio_config_t to -1, and the same applies for the right channel.
Answers checklist.
General issue report
It is not clear in the documentation if this component supports mono configurations (with a single speaker). I only want to play mono wav files, and it is not clear if this is supported and if affirmative how should one configure this mode. Should I set bot L and R channels to the same GPIO? Should I set one to an invalid value (like -1)?
In the documentation and sources, there is enum
pwm_audio_channel_t
that has as a possible valuePWM_AUDIO_CH_MONO
, but I cannot see this enum used anywhere in the sources.The text was updated successfully, but these errors were encountered: