Datasheet
CircuitPython Control
It's easy to use the MAX9744 amplifier with CircuitPython and the Adafruit CircuitPython MAX9744 module. This
module allows you to easily write Python code that controls the volume of the amplifier over its I2C connection.
First wire up a MAX9744 to your board exactly as shown on the previous pages for Arduino using an I2C connection.
Here's an example of wiring a Feather M0 to the sensor with I2C:
Board 3V to sensor Vi2c
Board GND to sensor GND
Board SCL to sensor SCL
Board SDA to sensor SDA
In addition just like the basic test page mentions be sure to also wire up a power supply, speakers, and audio input to
the amplifier.
Next you'll need to install the Adafruit CircuitPython MAX9744 library on your CircuitPython board.
First make sure you are running the latest version of Adafruit CircuitPython for your board.
Next you'll need to install the necessary libraries to use the hardware--carefully follow the steps to find and install these
libraries from Adafruit's CircuitPython library bundle. Our introduction guide has a great page on how to install the
library bundle for both express and non-express boards.
Remember for non-express boards like the, you'll need to manually install the necessary libraries from the bundle:
adafruit_max9744.mpy
You can also download the adafruit_max9744.mpy from its releases page on Github.
Before continuing make sure your board's lib folder or root filesystem has the adafruit_max9744.mpy file copied over.
Next connect to the board's serial REPL so you are at the CircuitPython >>> prompt.
© Adafruit Industries https://learn.adafruit.com/adafruit-20w-stereo-audio-amplifier-class-d-max9744 Page 34 of 37