🍞
Breadstick
  • Breadstick Innovations Website
  • Breadsticks
    • đŸĨ–Raspberry Breadstick
      • Code Examples
        • Demo Code
        • POV Wand
        • Pride Flags POV Wand
        • 6-Axis IMU
        • RGB Blink
        • AsyncIO RGB Blink
        • Digital Input
        • Digital Output
        • PWM
        • ADC
        • Servo Motor
    • đŸĨ–Raspberry Breadstick Lite
    • 🍞Support Boards
      • I2C Devices
        • 🚌I2C Bus Rail Adapter
        • đŸŒĻī¸Weather Crouton
        • 😎Brightness Crouton
        • 📏Distance Crouton
        • đŸĢ¨Motion Crouton
      • I2S Devices
        • đŸ“ĸBoombox
      • SPI Devices
      • đŸ•šī¸Buttons/Switches
    • Learning Resources
    • Troubleshooting
  • Nougat
    • Nougat C3
    • Nougat Quad
    • Installing WLED
  • Pico Slices
    • 🔴Slice 1 - LED Mixer
      • Assembly Guide
      • CircuitPython Code
        • 1 - Blink
        • 2 - Analog Read to Plotter
        • 3 - PWM Fade
        • 4 - Pot Controlled PWM
        • 5 - Gamma Correction
    • âąī¸Slice 2 - Stopwatch
      • Assembly Guide
      • Coding Lessons
        • 1 - 7-Segment Display Intro
        • 2 - Cycling Through All Segments
    • âŦœSlice 3 - 8x8 Dot Matrix
      • Assembly Guide
      • MicroPython Code
        • 1 - Moveable Pixel
        • 2 - Snake
    • Circuit Python Setup
    • Reset Bricked Pico
  • Christmas
    • Christmas Tree DIY kit
  • Protoboards
    • â¤ī¸Proto-Heart
    • đŸĨĒProto-Toast
  • SHOP
Powered by GitBook
On this page
  • Product Page
  • CircuitPython Library
  • MAX98357 Datasheet
  • Code

Was this helpful?

  1. Breadsticks
  2. Support Boards
  3. I2S Devices

Boombox

MAX98357 3W I2S Audio Amplifier

PreviousI2S DevicesNextSPI Devices

Last updated 1 year ago

Was this helpful?

Product Page

<Insert Link To Our Shop>

CircuitPython Library

MAX98357 Datasheet

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)
🍞
đŸ“ĸ
https://docs.circuitpython.org/en/latest/shared-bindings/audiomp3/index.html#audiomp3.MP3Decoder
https://www.analog.com/media/en/technical-documentation/data-sheets/max98357a-max98357b.pdf