> For the complete documentation index, see [llms.txt](https://learn.breadstick.ca/breadstick/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://learn.breadstick.ca/breadstick/breadsticks/support-boards/i2s-devices/boombox.md).

# Boombox

## 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

```python
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)

```
