Black Lives Matter - Action and Equality. ... Adafruit is open and shipping.
0

How do you display images on LED Matrix Panel?
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

How do you display images on LED Matrix Panel?

by traxxtar on Wed Jan 08, 2020 3:09 pm

I have a 64x32 matrix panel running successfully using a Adafruit Feather M0 and RGB Matrix kit. Nice, elegant and simple to just plug it into the back.

I've searched far and wide and found a 'few' posts and pages about using .PPM files to display images/graphics on the display, but haven't found ANY simple tutorials or instructions for how to do such things. As a novice, I don't possess the talent to 'write a function' to convert or rewrite buffer data, etc. Sorry. :(

I'd just like to point to a location X,Y on the matrix and display an image logo. Perhaps make it move left/right, etc, if I get that far.

Any ideas?

traxxtar
 
Posts: 94
Joined: Wed Jun 05, 2013 7:54 pm

Re: How do you display images on LED Matrix Panel?

by cuppaCoffee on Sun Jan 19, 2020 9:25 pm

Can you run the example file under Examples > RGB Matrix Panel > PanelGFXDemo_16x32 ?

I have your same set up but with Feather M4 instead.
To get this demo to run I used:

#define CLK 13 // You might need 8, not sure
#define OE 1 // TX
#define LAT 0 // RX
#define A A5
#define B A4
#define C A3
#define D A2

uint8_t rgbpins[] = { 6,5,9,11,10,12 };

// Enable double buffering
RGBmatrixPanel matrix(A, B, C, D, CLK, LAT, OE, true, 64, rgbpins);

// Also:
// Define matrix width and height.
#define mw 64
#define mh 32

// And I had to global find and replace "->" with "."
--------------------------------------------
If that runs there are examples of images displayed.

I was able to replace the values in the arduino tab "smiley_tongue_24.h" and display my own 24x24 pixel image.

You can load your .PPM file in GIMP or similar paint program, and save out a .JPG.
The convert with http://www.rinkydinkelectronics.com/t_i ... ter565.php
Download and open as a text file.
Cut and paste values into "smiley_tongue_24.h" tab. I didn't overwrite the "const unsigned short bitmap24[576] PROGMEM={"
and you should see your image when you rerun the demo.

Good luck!

cuppaCoffee
 
Posts: 11
Joined: Sat Jun 15, 2019 1:00 pm

Re: How do you display images on LED Matrix Panel?

by traxxtar on Thu Jan 23, 2020 1:43 pm

With a 64x32 panel, I assume my graphic would have to be smaller than 64 pixels wide. How do you take a JPG and scale it down to that tiny size?

traxxtar
 
Posts: 94
Joined: Wed Jun 05, 2013 7:54 pm

Re: How do you display images on LED Matrix Panel?

by traxxtar on Thu Jan 23, 2020 3:38 pm

I used Illustrator to scale it down. I'll try it when I get home tonight. Thanks!!

traxxtar
 
Posts: 94
Joined: Wed Jun 05, 2013 7:54 pm

Please be positive and constructive with your questions and comments.