đŸ“ĸBoombox

MAX98357 3W I2S Audio Amplifier

Product Page

<Insert Link To Our Shop>

CircuitPython Library

https://docs.circuitpython.org/en/latest/shared-bindings/audiomp3/index.html#audiomp3.MP3Decoder

MAX98357 Datasheet

https://www.analog.com/media/en/technical-documentation/data-sheets/max98357a-max98357b.pdf

Code

from board import *
import audiomp3
import digitalio
import audiobusio
from time import sleep

mp3 = audiomp3.MP3Decoder("techvibes-44100hz-32kbps.mp3")
a = audiobusio.I2SOut(bit_clock=D15, word_select=D14, data=D13)

while True:
    print("playing")
    a.play(mp3)
    while a.playing:
      pass
    print("stopped")
    sleep(1)

Last updated