# CircuitPython Animated Sprite Pendants

## Overview

https://youtu.be/2r9l1TYxcfE

![](https://cdn-learn.adafruit.com/assets/assets/000/083/591/medium800thumb/3d_printing_hero-toast-hspin.jpg?1572973287)

## Mario Clouds & Flying Toasters

In this project we’re making retro inspired wearables!

The pendant features an IPS display with animated graphics. It uses Adafruit’s CircuitPython to create animated sprites that look like flying toasters and scrolling clouds.

We originally did these two as Pro Trinket projects, [with a monochrome OLED for the toasters](https://learn.adafruit.com/animated-flying-toaster-oled-jewelry), and [a color OLED for the clouds](https://learn.adafruit.com/scrolling-mario-clouds-tft-jewelry). To keep up with modern times, and the new high visibility IPS displays, we've upgraded both projects here to use CircuitPython instead of Arduino for easier customization. The displays also look a lot better, but the price and construction is about the same!

## 3D Printed Retro Pendant

With CircuitPython, you use the DisplayIO library to generate custom graphics and interfaces.

You can use bitmap images to create sprite sheets and palettes to generate colored pixels.&nbsp;

The code in this project randomly generates flying toasters that continuously scroll across the screen. We think it’s a great example for folks getting started with DisplayIO and CircuitPython.

![3d_printing_hero-cloud-hspin-loop.gif](https://cdn-learn.adafruit.com/assets/assets/000/083/532/medium640thumb/3d_printing_hero-cloud-hspin-loop.jpg?1572908882)

We made two versions, one for each display, so you can use the 1.3in or 1.54in IPS display.

It’s also easy to swap out the graphics and modify the code to make your own animations.

![3d_printing_hero-two-loop.gif](https://cdn-learn.adafruit.com/assets/assets/000/083/533/medium640thumb/3d_printing_hero-two-loop.jpg?1572908919)

## Parts
Select the display size you would like:

- [Adafruit 1.3" 240x240 Wide Angle TFT LCD Display with MicroSD](https://www.adafruit.com/product/4313)

or

- [Adafruit 1.54" 240x240 Wide Angle TFT LCD Display with MicroSD](https://www.adafruit.com/product/3787)

![3d_printing_parts.jpg](https://cdn-learn.adafruit.com/assets/assets/000/083/534/medium640/3d_printing_parts.jpg?1572909036)

Then add these:

- [Adafruit ItsyBitsy M4 Express featuring ATSAMD51](https://www.adafruit.com/product/3800)
- [Adafruit LiIon/LiPoly Backpack Add-On for Pro Trinket/ItsyBitsy](https://www.adafruit.com/product/2124)
- [Breadboard-friendly SPDT Slide Switch](https://www.adafruit.com/product/805)
- [Lithium Ion Polymer Battery - 3.7v 150mAh](https://www.adafruit.com/product/1317)

![](https://cdn-learn.adafruit.com/assets/assets/000/083/537/medium800thumb/3d_printing_hero-toast-necklace-loop.jpg?1572909319)

### Adafruit 1.3" 240x240 Wide Angle TFT LCD Display with MicroSD

[Adafruit 1.3" 240x240 Wide Angle TFT LCD Display with MicroSD](https://www.adafruit.com/product/4313)
We've been looking for a display like this for a long time - it's **so small** only 1.3" diagonal but has a high density 260 ppi, 240x240 pixel display with full-angle viewing. It _looks_ a lot like our 1.44" 128x128 display, but has 4x as many pixels and...

In Stock
[Buy Now](https://www.adafruit.com/product/4313)
[Related Guides to the Product](https://learn.adafruit.com/products/4313/guides)
![Overhead shot of 1.3" TFT breakout connected via EYESPI board and microcontroller on a half-size breadboard. The TFT breakout displays a colorful hexagon.](https://cdn-shop.adafruit.com/640x480/4313-09.jpg)

### Adafruit 1.54" 240x240 Wide Angle TFT LCD Display with MicroSD

[Adafruit 1.54" 240x240 Wide Angle TFT LCD Display with MicroSD](https://www.adafruit.com/product/3787)
We've been looking for a display like this for a long time - it's only 1.5" diagonal but has a high density 220 ppi, 240x240 pixel display with full-angle viewing. It _looks_ a lot like our 1.44" 128x128 display, but has 4x as many pixels and looks great at any angle....

In Stock
[Buy Now](https://www.adafruit.com/product/3787)
[Related Guides to the Product](https://learn.adafruit.com/products/3787/guides)
![Top Down Demo Video of OLED breakout wired up on breadboard to QT Py and BFF driver board. Video displays multi-colored shapes and animations.](https://cdn-shop.adafruit.com/product-videos/640x480/3787-16.jpg)

### Adafruit ItsyBitsy M4 Express featuring ATSAMD51

[Adafruit ItsyBitsy M4 Express featuring ATSAMD51](https://www.adafruit.com/product/3800)
What's smaller than a Feather but larger than a Trinket? It's an **Adafruit ItsyBitsy M4 Express** featuring the **Microchip ATSAMD51**! Small, powerful, with a ultra fast ATSAMD51 Cortex M4 processor running at 120 MHz - this microcontroller board is perfect...

In Stock
[Buy Now](https://www.adafruit.com/product/3800)
[Related Guides to the Product](https://learn.adafruit.com/products/3800/guides)
![Adafruit ItsyBitsy M4 Express featuring ATSAMD51 connected to a small breadboard. ](https://cdn-shop.adafruit.com/product-videos/640x480/3800-04.jpg)

### Adafruit LiIon/LiPoly Backpack Add-On for Pro Trinket/ItsyBitsy

[Adafruit LiIon/LiPoly Backpack Add-On for Pro Trinket/ItsyBitsy](https://www.adafruit.com/product/2124)
If you have an ItsyBitsy or Pro Trinket you probably know it's the perfect little size for a portable project. This LiPoly backpack makes it really easy to do! Instead of wiring 2 or 3 boards together to make a charging system, this little PCB sits on top of the PCB and allows a...

In Stock
[Buy Now](https://www.adafruit.com/product/2124)
[Related Guides to the Product](https://learn.adafruit.com/products/2124/guides)
![Angled Shot of the Adafruit LiIon/LiPoly Backpack Add-On for Pro Trinket/ItsyBitsy.](https://cdn-shop.adafruit.com/640x480/2124-09.jpg)

### Breadboard-friendly SPDT Slide Switch

[Breadboard-friendly SPDT Slide Switch](https://www.adafruit.com/product/805)
These nice switches are perfect for use with breadboard and perfboard projects. They have 0.1" spacing and snap in nicely into a solderless breadboard. They're easy to switch no matter what size fingers you have, but not so easy that they'll get flipped by accident. Work great as...

In Stock
[Buy Now](https://www.adafruit.com/product/805)
[Related Guides to the Product](https://learn.adafruit.com/products/805/guides)
![Small, black, SPDT slide switch.](https://cdn-shop.adafruit.com/640x480/805-03.jpg)

### Lithium Ion Polymer Battery - 3.7v 150mAh

[Lithium Ion Polymer Battery - 3.7v 150mAh](https://www.adafruit.com/product/1317)
Lithium-ion polymer (also known as 'lipo' or 'lipoly') batteries are thin, light, and powerful. The output ranges from 4.2V when completely charged to 3.7V. This battery has a capacity of 150mAh for a total of about 0.6 Wh. If you need a larger battery, <a...></a...>

Out of Stock
[Buy Now](https://www.adafruit.com/product/1317)
[Related Guides to the Product](https://learn.adafruit.com/products/1317/guides)
![Angle Shot of Lithium Ion Polymer Battery 3.7v 150mAh with JST 2-PH connector](https://cdn-shop.adafruit.com/640x480/1317-03.jpg)

### Silicone Cover Stranded-Core Ribbon Cable - 10 Wire 1 Meter Long

[Silicone Cover Stranded-Core Ribbon Cable - 10 Wire 1 Meter Long](https://www.adafruit.com/product/3890)
For those who are fans of our silicone-covered wires, but are always looking to _up their wiring game_. We now have **Silicone Cover Ribbon cables!** These may look _a lot_ like <a...></a...>

In Stock
[Buy Now](https://www.adafruit.com/product/3890)
[Related Guides to the Product](https://learn.adafruit.com/products/3890/guides)
![10 wire Silicone Cover Stranded-Core Ribbon Cable](https://cdn-shop.adafruit.com/640x480/3890-01.jpg)

- [Next Page](https://learn.adafruit.com/circuitpython-sprite-animation-pendant-mario-clouds-flying-toasters/circuit-diagram.md)

## Featured Products

### Adafruit 1.3" 240x240 Wide Angle TFT LCD Display with MicroSD

[Adafruit 1.3" 240x240 Wide Angle TFT LCD Display with MicroSD](https://www.adafruit.com/product/4313)
We've been looking for a display like this for a long time - it's **so small** only 1.3" diagonal but has a high density 260 ppi, 240x240 pixel display with full-angle viewing. It _looks_ a lot like our 1.44" 128x128 display, but has 4x as many pixels and...

In Stock
[Buy Now](https://www.adafruit.com/product/4313)
[Related Guides to the Product](https://learn.adafruit.com/products/4313/guides)
### Adafruit 1.54" 240x240 Wide Angle TFT LCD Display with MicroSD

[Adafruit 1.54" 240x240 Wide Angle TFT LCD Display with MicroSD](https://www.adafruit.com/product/3787)
We've been looking for a display like this for a long time - it's only 1.5" diagonal but has a high density 220 ppi, 240x240 pixel display with full-angle viewing. It _looks_ a lot like our 1.44" 128x128 display, but has 4x as many pixels and looks great at any angle....

In Stock
[Buy Now](https://www.adafruit.com/product/3787)
[Related Guides to the Product](https://learn.adafruit.com/products/3787/guides)
### Adafruit ItsyBitsy M4 Express featuring ATSAMD51

[Adafruit ItsyBitsy M4 Express featuring ATSAMD51](https://www.adafruit.com/product/3800)
What's smaller than a Feather but larger than a Trinket? It's an **Adafruit ItsyBitsy M4 Express** featuring the **Microchip ATSAMD51**! Small, powerful, with a ultra fast ATSAMD51 Cortex M4 processor running at 120 MHz - this microcontroller board is perfect...

In Stock
[Buy Now](https://www.adafruit.com/product/3800)
[Related Guides to the Product](https://learn.adafruit.com/products/3800/guides)
### Adafruit LiIon/LiPoly Backpack Add-On for Pro Trinket/ItsyBitsy

[Adafruit LiIon/LiPoly Backpack Add-On for Pro Trinket/ItsyBitsy](https://www.adafruit.com/product/2124)
If you have an ItsyBitsy or Pro Trinket you probably know it's the perfect little size for a portable project. This LiPoly backpack makes it really easy to do! Instead of wiring 2 or 3 boards together to make a charging system, this little PCB sits on top of the PCB and allows a...

In Stock
[Buy Now](https://www.adafruit.com/product/2124)
[Related Guides to the Product](https://learn.adafruit.com/products/2124/guides)
### Breadboard-friendly SPDT Slide Switch

[Breadboard-friendly SPDT Slide Switch](https://www.adafruit.com/product/805)
These nice switches are perfect for use with breadboard and perfboard projects. They have 0.1" spacing and snap in nicely into a solderless breadboard. They're easy to switch no matter what size fingers you have, but not so easy that they'll get flipped by accident. Work great as...

In Stock
[Buy Now](https://www.adafruit.com/product/805)
[Related Guides to the Product](https://learn.adafruit.com/products/805/guides)
### Lithium Ion Polymer Battery - 3.7v 150mAh

[Lithium Ion Polymer Battery - 3.7v 150mAh](https://www.adafruit.com/product/1317)
Lithium-ion polymer (also known as 'lipo' or 'lipoly') batteries are thin, light, and powerful. The output ranges from 4.2V when completely charged to 3.7V. This battery has a capacity of 150mAh for a total of about 0.6 Wh. If you need a larger battery, <a...></a...>

Out of Stock
[Buy Now](https://www.adafruit.com/product/1317)
[Related Guides to the Product](https://learn.adafruit.com/products/1317/guides)
### Silicone Cover Stranded-Core Ribbon Cable - 10 Wire 1 Meter Long

[Silicone Cover Stranded-Core Ribbon Cable - 10 Wire 1 Meter Long](https://www.adafruit.com/product/3890)
For those who are fans of our silicone-covered wires, but are always looking to _up their wiring game_. We now have **Silicone Cover Ribbon cables!** These may look _a lot_ like <a...></a...>

In Stock
[Buy Now](https://www.adafruit.com/product/3890)
[Related Guides to the Product](https://learn.adafruit.com/products/3890/guides)

## Related Guides

- [Adafruit 1.3" and 1.54" 240x240 Wide Angle TFT LCD Displays](https://learn.adafruit.com/adafruit-1-3-and-1-54-240-x-240-wide-angle-tft-lcd-displays.md)
- [DRAFT PUNK](https://learn.adafruit.com/draft-punk.md)
- [DotStar Fortune Necklace with Bluetooth and Touch](https://learn.adafruit.com/dotstar-fortune-necklace.md)
- [NeoPixel LED Necklace Insert with USB Charging](https://learn.adafruit.com/neopixel-led-necklace-insert-with-usb-charging.md)
- [Portable Mini Timelapse Camera](https://learn.adafruit.com/portable-mini-timelapse-camera.md)
- [CircuitPython OLED and Dual Knob Sketcher](https://learn.adafruit.com/circuitpython-oled-knob-sketcher.md)
- [Adafruit EYESPI Pi Beret](https://learn.adafruit.com/eyespi-pi-beret.md)
- [Motorized Camera Slider 2-Axis](https://learn.adafruit.com/motorized-camera-slider-2-axis.md)
- [Happy Chewbacca Mask](https://learn.adafruit.com/happy-chewbacca-mask.md)
- [LED Campfire](https://learn.adafruit.com/led-campfire.md)
- [Genesis Poi: DotStar LED Persistence-of-Vision](https://learn.adafruit.com/genesis-poi-dotstar-led-persistence-of-vision-poi.md)
- [CircuitPython Essentials](https://learn.adafruit.com/circuitpython-essentials.md)
- [Rezz-Inspired NeoPixel Glasses](https://learn.adafruit.com/rezz-inspired-neopixel-glasses.md)
- [MakeCode Arcade with SAMD51 M4](https://learn.adafruit.com/makecode-arcade-with-samd51-m4.md)
- [Motorized Turntable](https://learn.adafruit.com/motorized-turntable-circuitpython.md)
- [Adafruit PiTFT 3.5" Touch Screen for Raspberry Pi](https://learn.adafruit.com/adafruit-pitft-3-dot-5-touch-screen-for-raspberry-pi.md)
