Using Color444 or 888 on 32x32 matrix

EL Wire/Tape/Panels, LEDs, pixels and strips, LCDs and TFTs, etc products from Adafruit

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
andrew777
 
Posts: 5
Joined: Sun Jan 15, 2023 10:04 am

Using Color444 or 888 on 32x32 matrix

Post by andrew777 »

Hi All,

When I am using color coding with the following example or a variant of this (see partial code below) the matrix show text like half colored. See image.

If I use 888 then have the same result but of course with other colors. Is that expected?

If I use for example 0, 0, 12 then I get normal blue for all text.

Thanks

Partial code:

...
matrix.setTextColor(matrix.Color444(12, 0, 5));
matrix.setCursor(0, 0);
matrix.print("This");
matrix.setCursor(5, 6);
matrix.print("is a");
matrix.setCursor(0, 14);
matrix.print("Test");
matrix.setCursor(10, 22);
matrix.setTextWrap(false);
....
Attachments
IMG_2371.jpg
IMG_2371.jpg (690.71 KiB) Viewed 144 times

User avatar
blnkjns
 
Posts: 963
Joined: Fri Oct 02, 2020 3:33 am

Re: Using Color444 or 888 on 32x32 matrix

Post by blnkjns »

The change is at the bottom half. So that looks more like a problem with one of the address lines.
What microcontroller do you use, and how is the panel wired?

User avatar
andrew777
 
Posts: 5
Joined: Sun Jan 15, 2023 10:04 am

Re: Using Color444 or 888 on 32x32 matrix

Post by andrew777 »

I am using Arduino mega 2560 rev 3. Pin wiring is as follows:

On Arduino Mega, I have connected R0, G0 and B0 to pins 24, 25 and 26 (RGB Upper). And I have connected R1, G1 and B1 to pins 27, 28 and 29 (RGB Lower).

As described in https://learn.adafruit.com/32x16-32x32-rgb-led-matrix

A, B, C AND D connected to A0, A1, A2, A3
LAT on pin 10, OE on pin 9, CLK on pin 11
GND Connected on three pins.
So in total 16 pins.

User avatar
andrew777
 
Posts: 5
Joined: Sun Jan 15, 2023 10:04 am

Re: Using Color444 or 888 on 32x32 matrix

Post by andrew777 »

Attached a picture to show that blue square is correct and number in white also.
IMG_2395.jpg
IMG_2395.jpg (757.01 KiB) Viewed 128 times

User avatar
blnkjns
 
Posts: 963
Joined: Fri Oct 02, 2020 3:33 am

Re: Using Color444 or 888 on 32x32 matrix

Post by blnkjns »

What library do you use with what bit depth?
Default 16-bit colour would fill the entire MEGA ram space.
With Protomatter library you can run it at say 6 bits per pixel, resulting in a 6kB buffer.

User avatar
andrew777
 
Posts: 5
Joined: Sun Jan 15, 2023 10:04 am

Re: Using Color444 or 888 on 32x32 matrix

Post by andrew777 »

I am using the RGBmatrixPanel lib with 8 bit depth.

User avatar
blnkjns
 
Posts: 963
Joined: Fri Oct 02, 2020 3:33 am

Re: Using Color444 or 888 on 32x32 matrix

Post by blnkjns »

It looks like a memory problem. Try it with the protomatter library instead.

User avatar
andrew777
 
Posts: 5
Joined: Sun Jan 15, 2023 10:04 am

Re: Using Color444 or 888 on 32x32 matrix

Post by andrew777 »

Was off for a couple days. Thanks will try 👍🏻

Locked
Please be positive and constructive with your questions and comments.

Return to “Glowy things (LCD, LED, TFT, EL) purchased at Adafruit”