# Matrix Portal RGB Display Handbag

## Overview

https://youtu.be/NeI4ijO_rKg

Make a display for your display! Show off your message to the world. This guide will show how to set up and assemble a Matrix Portal and RGB Matrix display, then make a transparent pocket in your backpack, purse, or messenger bag to show it off.

There is also a simple code example that displays your bmp images in slideshow fashion. Use the onboard buttons to switch between folders and play different messages, or pause on your favorite image. Set your bag down and the onboard accelerometer will sense that you're not moving and dim the screen to save battery life.

You can also use any of the other Matrix Portal code samples to get you started. Get ready to have fun with all the features the Matrix Portal offers.

![](https://cdn-learn.adafruit.com/assets/assets/000/096/011/medium800/led_matrices_backpack_nyancat.jpg?1602972566)

### Difficulty

The build for this project is really easy. For the electronics setup you'll just need a screwdriver. For the handbag mod, we'll use fabric scissors and glue to affix our vinyl window. Sewing skills could be helpful, but are not required.

The coding portion is a little trickier, but I've made it as simple as possible to get images flashing up on your screen. There are more and more guides in the Adafruit Learning System every day with sample code, so this project can get as involved as you'd like.

### Parts Needed

The Matrix Portal board is a very cool microcontroller that plugs into the back of any of our RGB Matrix display panels. The displays come in lots of different sizes - [check them out here](https://www.adafruit.com/category/327).

I used the 4mm pitch 64x32 sized one for this project. It measures 10' x 5', and it fits perfectly inside the outer pocket of my pack.&nbsp;

Featured
### Adafruit Matrix Portal - CircuitPython Powered Internet Display

[Adafruit Matrix Portal - CircuitPython Powered Internet Display](https://www.adafruit.com/product/4745)
Folks love our [wide selection of RGB matrices](https://www.adafruit.com/category/327) and accessories, for making custom colorful LED displays... and our RGB Matrix Shields and FeatherWings can be quickly soldered together to make the wiring much easier. But what if we made it...

In Stock
[Buy Now](https://www.adafruit.com/product/4745)
[Related Guides to the Product](https://learn.adafruit.com/products/4745/guides)
![Video of a person rotating an LED matrix panel with animation resembling falling colored sand.](https://cdn-shop.adafruit.com/product-videos/640x480/4745-05.jpg)

Featured
### 64x32 RGB LED Matrix - 4mm pitch

[64x32 RGB LED Matrix - 4mm pitch](https://www.adafruit.com/product/2278)
Bring a little bit of Times Square into your home with this sweet 64 x 32 square RGB LED matrix panel. These panels are normally used to make video walls, here in New York we see them on the sides of busses and bus stops, to display animations or short video clips. We thought they looked...

Out of Stock
[Buy Now](https://www.adafruit.com/product/2278)
[Related Guides to the Product](https://learn.adafruit.com/products/2278/guides)
![Two white hands hold out an assembled and powered on 64x32 RGB LED Matrix Panel - 4mm pitch. The matrix displays "Adafruit Industries LED MATRIX! 32x64 *RGB*"](https://cdn-shop.adafruit.com/640x480/2278-00.jpg)

This lipstick-sized USB battery will power the Matrix Portal for a few hours (depending on the brightness of your images). We've also got a bigger one if you want it to last all night.

Featured
### USB Battery Pack for Raspberry Pi - 10000mAh - 2 x 5V outputs

[USB Battery Pack for Raspberry Pi - 10000mAh - 2 x 5V outputs](https://www.adafruit.com/product/1566)
A large-sized rechargeable battery pack for your [Raspberry Pi](http://www.adafruit.com/raspberrypi) (or [Arduino](http://www.adafruit.com/arduino), or [Propeller](http://www.adafruit.com/category/26), or anything else that uses 5V!). This pack is intended for...

In Stock
[Buy Now](https://www.adafruit.com/product/1566)
[Related Guides to the Product](https://learn.adafruit.com/products/1566/guides)
![Angled shot of white rectangular USB battery pack with 4 dotted lights indicating battery is fully charged. ](https://cdn-shop.adafruit.com/640x480/1566-11.jpg)

This board connects with a USB C cable, so get at least one of these.

### USB Type A to Type C Cable - 6" long

[USB Type A to Type C Cable - 6" long](https://www.adafruit.com/product/4472)
As technology changes and adapts, so does Adafruit. This&nbsp;&nbsp; **USB Type A to Type C** cable will help you with the transition to USB C, even if you're still totin' around a USB Type A hub, computer or laptop.

USB C is the latest industry-standard connector for...

In Stock
[Buy Now](https://www.adafruit.com/product/4472)
[Related Guides to the Product](https://learn.adafruit.com/products/4472/guides)
![Six-inch-long USB Type A to Type C cable.](https://cdn-shop.adafruit.com/640x480/4472-00.jpg)

You can unplug the cable to turn it off, but it's easier and handier to plug in an on/off switch.

### USB Cable with Switch

[USB Cable with Switch](https://www.adafruit.com/product/1620)
Add a power switch to any USB-powered project simply by plugging this between the USB power port and the USB cable. This is the most useful thing you never knew you needed! You'll want to pick up a bunch for your electronic projects.  
  
Comes with a USB A socket on one end and a...

In Stock
[Buy Now](https://www.adafruit.com/product/1620)
[Related Guides to the Product](https://learn.adafruit.com/products/1620/guides)
![Short USB Extender Cable with Switch in center](https://cdn-shop.adafruit.com/640x480/1620-02.jpg)

### Additional Materials

You'll also need a backpack, messenger bag, or purse with a pocket that will comfortably fit your RGB display, with a couple inches extra on the "long" side to accommodate the Matrix Portal board and the USB cable.

I found the pack I'm using in this guide in the travel section at Target.

For the window, you'll need a square of vinyl. You can find this online or at your local plastic store. I used iridescent vinyl, which does make the matrix a little harder to see in the daytime, but it's shiny and iridescent so I don't really care -- and the matrix still shows through beautifully in lower light. The iridescence also gives my images a bit of a rainbow sheen, which I count as a win.

I also used a bit of [Fray Check](https://www.amazon.com/Dritz-1674-Liquid-Sealant-0-75-Ounce/dp/B000YQKIDY/ref=sr_1_2?dchild=1&keywords=fray+check&qid=1603291229&sr=8-2) on my bag. This is a great product that you can find at sewing stores or online. Just apply it to the cut edges of your fabric and it will keep the fabric from unraveling. I always have some of this stuff handy.

# Matrix Portal RGB Display Handbag

## Prep the MatrixPortal

## Power Prep

The MatrixPortal supplies power to the matrix display panel via two standoffs. These come with protective tape applied (part of our manufacturing process) which MUST BE REMOVED!

Use some tweezers or a fingernail to remove the two amber circles.

![adafruit_io_mxprtl-3866.jpg](https://cdn-learn.adafruit.com/assets/assets/000/094/902/medium640/adafruit_io_mxprtl-3866.jpg?1600706317)

![adafruit_io_mxprtl-3867.jpg](https://cdn-learn.adafruit.com/assets/assets/000/094/903/medium640/adafruit_io_mxprtl-3867.jpg?1600706324)

## Power Terminals

Next, screw in the spade connectors to the corresponding standoff.

- **red** wire goes to **+5V** &nbsp;
- **black** wire goes to **GND**

![adafruit_io_mxprtl-3869.jpg](https://cdn-learn.adafruit.com/assets/assets/000/094/907/medium640/adafruit_io_mxprtl-3869.jpg?1600706432)

![adafruit_io_mxprtl-3871.jpg](https://cdn-learn.adafruit.com/assets/assets/000/094/908/medium640/adafruit_io_mxprtl-3871.jpg?1600706551)

## Panel Power

Plug either one of the four-conductor power plugs into the power connector pins on the panel. The plug can only go in one way, and that way is marked on the board's silkscreen.

![adafruit_io_mxprtl-3872.jpg](https://cdn-learn.adafruit.com/assets/assets/000/094/910/medium640/adafruit_io_mxprtl-3872.jpg?1600706597)

![adafruit_io_mxprtl-3873.jpg](https://cdn-learn.adafruit.com/assets/assets/000/094/911/medium640/adafruit_io_mxprtl-3873.jpg?1600706672)

## Dual Matrix Setup

If you're planning to use a 64x64 matrix, [follow these instructions on soldering the Address E Line jumper](https://learn.adafruit.com/adafruit-matrixportal-m4/pinouts#address-e-line-jumper-3072815).

## Board Connection

Now, plug the board into the left side shrouded 8x2 connector as shown. The orientation matters, so take a moment to confirm that the **white indicator arrow on the matrix panel is oriented pointing up and right** as seen here and the MatrixPortal overhangs the edge of the panel when connected. This allows you to use the edge buttons from the front side.

&nbsp;

Check nothing is impeding the board from plugging in firmly. If there's a plastic nub on the matrix that's keeping the Portal from sitting flat, cut it off with diagonal cutters

![adafruit_io_mxprtl-3874.jpg](https://cdn-learn.adafruit.com/assets/assets/000/094/912/medium640/adafruit_io_mxprtl-3874.jpg?1600706721)

![adafruit_io_mxprtl-3875.jpg](https://cdn-learn.adafruit.com/assets/assets/000/094/913/medium640/adafruit_io_mxprtl-3875.jpg?1600706732)

![](https://cdn-learn.adafruit.com/assets/assets/000/094/914/medium800/adafruit_io_mxprtl-3876.jpg?1600706891)

![](https://cdn-learn.adafruit.com/assets/assets/000/094/915/medium800/adafruit_io_mxprtl-3877.jpg?1600706894)

Info: 

# Matrix Portal RGB Display Handbag

## Install CircuitPython

[CircuitPython](https://github.com/adafruit/circuitpython) is a derivative of [MicroPython](https://micropython.org) designed to simplify experimentation and education on low-cost microcontrollers. It makes it easier than ever to get prototyping by requiring no upfront desktop software downloads. Simply copy and edit files on the **CIRCUITPY** drive to iterate.

## Set up CircuitPython Quick Start!

Follow this quick step-by-step for super-fast Python power :)

[Download the latest version of CircuitPython for this board via circuitpython.org](https://circuitpython.org/board/matrixportal_m4/)
## Further Information

For more detailed info on installing CircuitPython, check out [Installing CircuitPython](https://learn.adafruit.com/welcome-to-circuitpython/installing-circuitpython).

 **Click the link above and download the latest UF2 file.**

Download and save it to your desktop (or wherever is handy).

![led_matrices_Save_to_Desktop.png](https://cdn-learn.adafruit.com/assets/assets/000/095/075/medium640/led_matrices_Save_to_Desktop.png?1601050695)

Plug your MatrixPortal M4 into your computer using a known-good USB cable.

**A lot of people end up using charge-only USB cables and it is very frustrating! So make sure you have a USB cable you know is good for data sync.**

Double-click the **Reset** button (indicated by the green arrow) on your board, and you will see the NeoPixel RGB LED (indicated by the magenta arrow) turn green. If it turns red, check the USB cable, try another USB port, etc.

If double-clicking doesn't work the first time, try again. Sometimes it can take a few tries to get the rhythm right!

![led_matrices_matrixportal_install_cp.jpg](https://cdn-learn.adafruit.com/assets/assets/000/125/447/medium640/led_matrices_matrixportal_install_cp.jpg?1697644568)

You will see a new disk drive appear called **MATRIXBOOT**.

&nbsp;

Drag the **adafruit\_circuitpython\_etc.uf2** file to **MATRIXBOOT****.**

![led_matrices_MATRIXBOOT.png](https://cdn-learn.adafruit.com/assets/assets/000/125/448/medium640/led_matrices_MATRIXBOOT.png?1697644692)

![led_matrices_Drag_to_Drive.png](https://cdn-learn.adafruit.com/assets/assets/000/125/449/medium640/led_matrices_Drag_to_Drive.png?1697644703)

The LED will flash. Then, the **MATRIXBOOT** &nbsp;drive will disappear and a new disk drive called **CIRCUITPY** will appear.

That's it, you're done! :)

![led_matrices_circuitpy.png](https://cdn-learn.adafruit.com/assets/assets/000/125/450/medium640/led_matrices_circuitpy.png?1697645066)

# Matrix Portal RGB Display Handbag

## Code the Slideshow

This code will display a series of .bmp files in a folder as a slideshow. You can create as many folders as you'd like. The images in each folder will display as their own slideshow.&nbsp;

Press the UP button to pause the slideshow on any image you'd like, and press it again to resume the slideshow.

Press the DOWN button to cycle to the next folder and show the next slideshow.

You can set the amount of time each slide stays on the screen separately for each folder - so you can have a fast scrolling animation for one folder and a slower slideshow for a different folder.

The slideshow will continue to play while you're holding your bag and moving around. If you set your bag down and it stops moving, the Matrix Portal will put the display to sleep after 2 minutes to save battery life.&nbsp;

And of course, you can customize all the timing in the code.&nbsp;

## Libraries

We'll need to make sure we have these libraries installed. (Check out this [link](https://learn.adafruit.com/welcome-to-circuitpython/circuitpython-libraries) on installing libraries if needed.)

- **adafruit\_bus\_device**
- **adafruit\_debouncer**
- **adafruit\_lis3dh**
- **adafruit\_matrixportal**
- **adafruit\_slideshow**

![led_matrices_circuitpy.jpg](https://cdn-learn.adafruit.com/assets/assets/000/096/094/medium640/led_matrices_circuitpy.jpg?1603125986)

## Text Editor

Adafruit recommends using the Mu editor for editing your CircuitPython code. You can get more info in [this guide](https://learn.adafruit.com/welcome-to-circuitpython/installing-mu-editor).

Alternatively, you can use any text editor that saves simple text files.

## Code

Click the Download: Project Zip File link below in the code window to get a zip file with all the files needed for the project. Copy **code.py** from the zip file and place on the **CIRCUITPY** drive.

You'll also need to copy the following files to the **CIRCUITPY** drive. See the graphic at the top of the page as to filenames and where they go):

- **/bmps, /bmps2 and /bmps3** directories, which contain the graphics .bmp files for three different sample slide shows.

The button below contains our sample graphics: a VOTE sign, a nyancat animation, and a mermaid slideshow.

[bmps.zip](https://cdn-learn.adafruit.com/assets/assets/000/096/095/original/bmps.zip?1603126251)
Primary: 

https://github.com/adafruit/Adafruit_Learning_System_Guides/blob/main/Matrix_Portal/Matrix_Portal_Handbag/code.py

## Pixel Art Specs

If you want to create your own artwork for display, these are the specifications to follow:

- Images should be a maximum of 32 pixels high
- Images can be up to 64 pixels wide
- Colors are 16-bit or 24-bit RGB
- Save files as .bmp format

We've found that crisp images (not too much anti-aliasing) work best.

We have a whole page on [Pixel Art Fundamentals](https://learn.adafruit.com/makecode-arcade-pixel-art-sprites/pixel-art-fundamentals) here!

![led_matrices_03_nayancat.bmp](https://cdn-learn.adafruit.com/assets/assets/000/096/013/medium640/led_matrices_03_nayancat.bmp?1602973555)

You can use nearly any paint program, but dedicated pixel art programs work best, such as [Aseprite](https://www.aseprite.org/) or the free pixel art app [Piskel](https://www.piskelapp.com/).

![led_matrices_aseprite_ruby.jpg](https://cdn-learn.adafruit.com/assets/assets/000/095/427/medium640/led_matrices_aseprite_ruby.jpg?1602084107)

![led_matrices_piskel.jpg](https://cdn-learn.adafruit.com/assets/assets/000/095/428/medium640/led_matrices_piskel.jpg?1602084226)

## Art Collecting

If you want to search for ready-made art to display, here are some tips.

### Game Frame Art

The excellent [Game Frame](https://ledseq.com/) product by Jeremy Williams pioneered the pixel art frame. You can check the [LedSeq Game Frame forums](https://ledseq.com/forums/forum/game-frame/) for art gallery submissions. Although these tend to be 16x16 pixel images, you can scale them up (don't interpolate!) for use on the Matrix Portal.

Jeremy has also graciously made the code and art for Game Frame available for [free download here](https://ledseq.com/product/game-frame-sd-files/).

![led_matrices_sdCollage.png](https://cdn-learn.adafruit.com/assets/assets/000/095/431/medium640/led_matrices_sdCollage.png?1602085779)

### Search

Another great tip from LedSeq is to use a Google image search to return results of "pixel art" or "video game" at a specific resolution, either 64x32 or 32x32:

`https://www.google.com/search?q=pixel+art&tbm=isch&tbs=isz:ex,iszw:32,iszh:32`

### Itch.io Assets

Many talented artist post their pixel art [game assets to Itch.io](https://itch.io/game-assets/tag-pixel-art) where you can name your price in many case for amazing artwork!

Shown here are the excellent [PIPOYA FREE RPG Character Sprites](https://pipoya.itch.io/pipoya-free-rpg-character-sprites-32x32).

![led_matrices_04SPhB.png](https://cdn-learn.adafruit.com/assets/assets/000/095/430/medium640/led_matrices_04SPhB.png?1602085566)

## How it Works

### Libraries

Here's how the code works. First we import the libraries:

```python
import time
import board
import adafruit_lis3dh
import displayio
import busio
from digitalio import DigitalInOut, Pull
from adafruit_matrixportal.matrix import Matrix
from adafruit_slideshow import SlideShow, HorizontalAlignment
from adafruit_debouncer import Debouncer
```

### Variables

Then, we'll set the variables for `SLEEP_DURATION`(how long until the display goes dark if it's not moving) and `IMAGE_DURATION` (how long each image stays on the screen in each slide show) in seconds, as well as the path to the image folders.

Add as many folders as you like, but be sure to change the variable for `NUM_FOLDERS` further down if you add more.

```python
SLEEP_DURATION = 60
IMAGE_DURATION = (1, 0.5, 10)
IMAGE_FOLDER = (
    "/bmps",
    "/bmps2",
    "/bmps3",
)
```

### Display/Pin Setup

Next, we set up the display and the pins used for the buttons.

```python
matrix = Matrix(bit_depth=6)
display = matrix.display

pin_down = DigitalInOut(board.BUTTON_DOWN)
pin_down.switch_to_input(pull=Pull.UP)
button_down = Debouncer(pin_down)
pin_up = DigitalInOut(board.BUTTON_UP)
pin_up.switch_to_input(pull=Pull.UP)
button_up = Debouncer(pin_up)
```

## Slideshow Setup

The alignment of images narrower than 64 pixels wide will alternate, initially with right-side alignment. The `auto_advance` state is set to true initially, but can be changed by pressing the UP button later.

The slideshow is set up next using the settings shown here.

And take a look at the `NUM_FOLDERS` variable -- if you add or remove folders you'll want to change this number. Remember, the first folder is numbered 0, so change this variable to one fewer than you have.

```python
ALIGN_RIGHT = True
auto_advance = True

i = 0
NUM_FOLDERS = 2  # The first folder is numbered 0

slideshow = SlideShow(
    display,
    None,
    folder=IMAGE_FOLDER[i],
    order=0,
    auto_advance=False,
    fade_effect=False,
    dwell=IMAGE_DURATION[i],
    h_align=HorizontalAlignment.RIGHT,
)

LAST_ADVANCE = time.monotonic()
last_movement = time.monotonic()
MODE = 1
```

## Advance!

The `advance()` function will be used to drive the `slideshow.advance()` command using the alternating right/left alignment and auto-advance features.

```python
def advance():
    # pylint: disable=global-statement
    global align_right, last_advance
    align_right = not align_right
    if align_right:
        slideshow.h_align = HorizontalAlignment.RIGHT
    else:
        slideshow.h_align = HorizontalAlignment.LEFT
    last_advance = time.monotonic()
    slideshow.advance()
```

## Main Loop

Here's what happens during the main loop of the program:

- Check if the display is in motion or not. If so, run the slideshows. If not, put the display to sleep.
- Check if `auto_advance` is on, and if the `time.monotonic()` value is bigger than the `last_advance` time plus the `IMAGE_DURATION` time. If so, `advance()` to the next image!
- Check for button presses:
  - If the **UP** button is pressed, toggle the auto\_advance state
  - If the **DOWN** button is pressed, manually advance to the next image

```python
while True:
    if ACCEL.shake(shake_threshold=10):
        print("Moving!")
        if MODE == 0:
            slideshow = SlideShow(
                display,
                None,
                folder=IMAGE_FOLDER[i],
                order=0,
                auto_advance=False,
                fade_effect=False,
                dwell=IMAGE_DURATION[i],
                h_align=HorizontalAlignment.RIGHT,
            )
        last_movement = time.monotonic()
        MODE = 1
    elif time.monotonic() > last_movement + SLEEP_DURATION:
        MODE = 0
        display.root_group = empty_group
    if MODE == 1:
        if auto_advance and time.monotonic() > LAST_ADVANCE + IMAGE_DURATION[i]:
            advance()
        button_down.update()
        button_up.update()
        if button_up.fell:
            auto_advance = not auto_advance
        if button_down.fell:
            i = i + 1
            if i > NUM_FOLDERS:
                i = 0
            slideshow = SlideShow(
                display,
                None,
                folder=IMAGE_FOLDER[i],
                order=0,
                auto_advance=False,
                fade_effect=False,
                dwell=IMAGE_DURATION[i],
                h_align=HorizontalAlignment.RIGHT,
            )
```

# Matrix Portal RGB Display Handbag

## Build the Window Pocket

Cut a piece of vinyl so it's around 1/2" to 1" larger than the face of your RGB matrix on ALL sides (so, 1-2" total extra width).&nbsp;

You can use clear or colored vinyl, or if you're fancy like me, shiny rainbow iridescent unicorn vinyl.

![led_matrices_00_vinyl.jpg](https://cdn-learn.adafruit.com/assets/assets/000/095/986/medium640/led_matrices_00_vinyl.jpg?1602959239)

Fold back your pocket flap and mark the width of your RGB matrix with pins. We'll make a slit about 1-2 inches below where the top of the panel will rest.

Use scissors or a utility knife to carefully slice through all the layers of fabric EXCEPT the outermost layer -- leave that layer intact for now. This bag has lots of layers to cut through. For your bag you may only be cutting through one layer of lining.

![led_matrices_01_pins.jpg](https://cdn-learn.adafruit.com/assets/assets/000/095/987/medium640/led_matrices_01_pins.jpg?1602959341)

![led_matrices_02_exacto.jpg](https://cdn-learn.adafruit.com/assets/assets/000/095/988/medium640/led_matrices_02_exacto.jpg?1602959418)

Slide your assembled display into the pocket you just made and zip the pocket closed. Make sure everything fits with the USB cable connected and the battery attached.

Carefully cut around the face of the panel with sharp fabric scissors.

![led_matrices_03_window.jpg](https://cdn-learn.adafruit.com/assets/assets/000/095/989/medium640/led_matrices_03_window.jpg?1602959506)

Depending on your bag's material, you may start to get raveling along the edges. Grab your bottle of Fray Check to nip that in the bud. Apply the Fray Check to any cut edges that look like they might fray -- I put it on the innermost lining and on the outer fabric just to be safe.

Be generous but tidy. We're going to put some trim over this edge later so don't worry if it looks a bit messy.

![led_matrices_04_fraycheck.jpg](https://cdn-learn.adafruit.com/assets/assets/000/095/990/medium640/led_matrices_04_fraycheck.jpg?1602959596)

![led_matrices_05_fraycheck2.jpg](https://cdn-learn.adafruit.com/assets/assets/000/095/991/medium640/led_matrices_05_fraycheck2.jpg?1602959690)

![led_matrices_06_fraycheck3.jpg](https://cdn-learn.adafruit.com/assets/assets/000/095/992/medium640/led_matrices_06_fraycheck3.jpg?1602959712)

Place a sheet of scrap paper into your pocket to catch any extra glue drips. Then set the vinyl beneath the outer layer. Add some glue along the seam allowance of the vinyl and carefully press it down.

If you get glue on the vinyl, it's easy to get it off with 99% alcohol and a q-tip/cotton swab. Best to do this fast before the glue dries completely.

![led_matrices_07_e6000.jpg](https://cdn-learn.adafruit.com/assets/assets/000/095/993/medium640/led_matrices_07_e6000.jpg?1602959759)

![led_matrices_08_glue_vinyl.jpg](https://cdn-learn.adafruit.com/assets/assets/000/095/994/medium640/led_matrices_08_glue_vinyl.jpg?1602959784)

![led_matrices_09_z_alcohol.jpg](https://cdn-learn.adafruit.com/assets/assets/000/095/995/medium640/led_matrices_09_z_alcohol.jpg?1602959916)

Let the glue dry overnight. Come back in the morning and check to be sure all the edges are tightly attached. Once you're happy with the seal, add another layer of E6000 along the outside and glue down your ribbon or trim to hide the raw edge.

![led_matrices_10_gluetrim.jpg](https://cdn-learn.adafruit.com/assets/assets/000/095/996/medium640/led_matrices_10_gluetrim.jpg?1602959944)

Slip your RGB panel inside and see how it fits. My pocket flap is a bit wider than the panel and it was sliding to the side. I want it to stay centered on the window, so I added a couple of stitches with heavy duty thread through the trim, about 2 inches in from each corner. The panel is still easy to remove but now it won't slip to the side.

![led_matrices_10_needle_thread.jpg](https://cdn-learn.adafruit.com/assets/assets/000/095/997/medium640/led_matrices_10_needle_thread.jpg?1602960043)

You can reach inside the top flap to access the control buttons on the top of the Matrix Portal board. If you're using the on/off switch, plug the switch extension between the battery and the USB C cable and you can reach it here too.&nbsp;

Optionally you can edge-finish the raw edges of the pocket with a hand stitch or bias tape, or more sparkly ribbon or trim.

![led_matrices_12_flap.jpg](https://cdn-learn.adafruit.com/assets/assets/000/095/998/medium640/led_matrices_12_flap.jpg?1602960170)


## Guide Products

### Adafruit Matrix Portal - CircuitPython Powered Internet Display

[Adafruit Matrix Portal - CircuitPython Powered Internet Display](https://www.adafruit.com/product/4745)
Folks love our [wide selection of RGB matrices](https://www.adafruit.com/category/327) and accessories, for making custom colorful LED displays... and our RGB Matrix Shields and FeatherWings can be quickly soldered together to make the wiring much easier. But what if we made it...

In Stock
[Buy Now](https://www.adafruit.com/product/4745)
[Related Guides to the Product](https://learn.adafruit.com/products/4745/guides)
### 64x32 RGB LED Matrix - 4mm pitch

[64x32 RGB LED Matrix - 4mm pitch](https://www.adafruit.com/product/2278)
Bring a little bit of Times Square into your home with this sweet 64 x 32 square RGB LED matrix panel. These panels are normally used to make video walls, here in New York we see them on the sides of busses and bus stops, to display animations or short video clips. We thought they looked...

Out of Stock
[Buy Now](https://www.adafruit.com/product/2278)
[Related Guides to the Product](https://learn.adafruit.com/products/2278/guides)
### USB Battery Pack - 2200 mAh Capacity - 5V 1A Output

[USB Battery Pack - 2200 mAh Capacity - 5V 1A Output](https://www.adafruit.com/product/1959)
A smaller-sized rechargeable battery pack for your&nbsp;[Raspberry Pi](http://www.adafruit.com/raspberrypi)&nbsp;or [Raspberry Pi B+](https://www.adafruit.com/product/1914)&nbsp;(or&nbsp;[Arduino](http://www.adafruit.com/arduino), or&nbsp;<a...></a...>

No Longer Stocked
[Buy Now](https://www.adafruit.com/product/1959)
[Related Guides to the Product](https://learn.adafruit.com/products/1959/guides)
### USB Battery Pack for Raspberry Pi - 10000mAh - 2 x 5V outputs

[USB Battery Pack for Raspberry Pi - 10000mAh - 2 x 5V outputs](https://www.adafruit.com/product/1566)
A large-sized rechargeable battery pack for your [Raspberry Pi](http://www.adafruit.com/raspberrypi) (or [Arduino](http://www.adafruit.com/arduino), or [Propeller](http://www.adafruit.com/category/26), or anything else that uses 5V!). This pack is intended for...

In Stock
[Buy Now](https://www.adafruit.com/product/1566)
[Related Guides to the Product](https://learn.adafruit.com/products/1566/guides)
### USB Type A to Type C Cable - 6" long

[USB Type A to Type C Cable - 6" long](https://www.adafruit.com/product/4472)
As technology changes and adapts, so does Adafruit. This&nbsp;&nbsp; **USB Type A to Type C** cable will help you with the transition to USB C, even if you're still totin' around a USB Type A hub, computer or laptop.

USB C is the latest industry-standard connector for...

In Stock
[Buy Now](https://www.adafruit.com/product/4472)
[Related Guides to the Product](https://learn.adafruit.com/products/4472/guides)
### USB Cable with Switch

[USB Cable with Switch](https://www.adafruit.com/product/1620)
Add a power switch to any USB-powered project simply by plugging this between the USB power port and the USB cable. This is the most useful thing you never knew you needed! You'll want to pick up a bunch for your electronic projects.  
  
Comes with a USB A socket on one end and a...

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

## Related Guides

- [Adafruit MatrixPortal M4](https://learn.adafruit.com/adafruit-matrixportal-m4.md)
- [LED Matrix FIFA World Cup Scoreboard](https://learn.adafruit.com/led-matrix-fifa-world-cup-scoreboard.md)
- [Christmas Soundboard with NeoTrellis M4](https://learn.adafruit.com/xmas-sound-board.md)
- [Bluetooth-Controlled Matrix LED Sign using Bluefruit Connect](https://learn.adafruit.com/bluetooth-controlled-matrix-led-sign-using-bluefruit-connect.md)
- [LED Protest Sign](https://learn.adafruit.com/led-protest-sign.md)
- [Purple Air AQI Display](https://learn.adafruit.com/purple-air-aqi-display.md)
- [Water Drip Dress with Oozemaster 3000](https://learn.adafruit.com/water-drip-dress-with-oozemaster-3000.md)
- [Tombstone Prop-Maker RP2040](https://learn.adafruit.com/tombstone-prop-maker-rp2040.md)
- [Scrolling Countdown Timer](https://learn.adafruit.com/scrolling-countdown-timer.md)
- [Matrix Portal Creature Eyes](https://learn.adafruit.com/matrix-portal-creature-eyes.md)
- [Pico Bluetooth Keyboard Bridge](https://learn.adafruit.com/pico-bluetooth-keyboard-bridge.md)
- [LED Matrix Scoreboard](https://learn.adafruit.com/led-matrix-scoreboard.md)
- [Screaming Cauldron](https://learn.adafruit.com/screaming-cauldron.md)
- [Moon Phase Clock for Adafruit Matrix Portal](https://learn.adafruit.com/moon-phase-clock-for-adafruit-matrixportal.md)
- [Ocean Epoxy Resin Lightbox with RGB LED Matrix Image Scroller](https://learn.adafruit.com/ocean-epoxy-resin-lightbox-with-rgb-led-matrix-image-scroller.md)
- [Star Trek LCARS Display](https://learn.adafruit.com/star-trek-lcars-display.md)
