Skip to content

prcutler/circuitpython-albumart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CircuitPython albumart

Display album art on a 64x64 RGB Matrix, PyPortal, or S3 Qualia

Project Overview

The CircuitPython Album Art project loads and displays a remote image from a webserver and automatically updates when a new album is picked on the webserver.

Source code: GitHub

About

In the fall of 2021 I started to play around with loading an image on two 32x64 RGB Matrices. That project eventually turned into the PyPortal Album Art, which displays the album art along with a Winamp player showing the name of the artist and album. I used the PyPortal because I didn't care for the image quality of the RGB Matrix because it used a 64x64 image, which is practically pixel art at that resolution. Much later when I came across this Adafruit Learn Guide on gamma correction for the RGB Matrix did I have an aha moment of how to proceed.

The image used is generated by my FastAPI Python application and the images are resized using Pillow by the web app. I was then able to adapt the gamma correction code from the above learn guide and have that run by the web app, too. But for the purpose of this code, you can use any image on the web by just changing the URL in the code.

Using MQTT, the MatrixPortal. PyPortal, or Qualia listens for a message created by the web app when a new album is chosen and then saves and loads the image on the CircuitPython device. If you wish to use MQTT to listen, you will need to create a free Adafruit IO account or use your own MQTT broker.

Parts Needed

MatrixPortal

PyPortal

S3 Qualia

An album by Divine Fits, showing the album sleeve, the art on a computer screen and the same image on an RGB Matrix

About

Display album art using CircuitPython on a PyPortal or MatrixPortal

Topics

Resources

License

Stars

Watchers

Forks

Languages