Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5251

MicroPython • Re: Building an Internet-Radio using a Pico W using just Python

$
0
0
It would, for me, be nice to have it playing via a simple Piezo or speaker, analogue via PWM + RC, for a low-cost solution when lower quality audio is acceptable. But not asking for you to deliver that, or even venture in that direction.
Thanks for the flowers.
According to https://docs.circuitpython.org/en/lates ... index.html this should be as easy as replacing

Code:

i2s = audiobusio.I2SOut(board.GP10, board.GP11, board.GP9)
with someting like

Code:

i2s = audiopwmio.PWMAudioOut(left_channel_pwm_pin, right_channel_pwm_pin)
For mono instead of stereo you supply just one PWM capable pin.

Statistics: Posted by diereinegier — Sun Dec 22, 2024 2:15 pm



Viewing all articles
Browse latest Browse all 5251

Trending Articles