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);
....
Using Color444 or 888 on 32x32 matrix
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- andrew777
- Posts: 5
- Joined: Sun Jan 15, 2023 10:04 am
Using Color444 or 888 on 32x32 matrix
- Attachments
-
- IMG_2371.jpg (690.71 KiB) Viewed 144 times
- blnkjns
- Posts: 963
- Joined: Fri Oct 02, 2020 3:33 am
Re: Using Color444 or 888 on 32x32 matrix
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?
What microcontroller do you use, and how is the panel wired?
- andrew777
- Posts: 5
- Joined: Sun Jan 15, 2023 10:04 am
Re: Using Color444 or 888 on 32x32 matrix
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.
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.
- andrew777
- Posts: 5
- Joined: Sun Jan 15, 2023 10:04 am
Re: Using Color444 or 888 on 32x32 matrix
Attached a picture to show that blue square is correct and number in white also.
- blnkjns
- Posts: 963
- Joined: Fri Oct 02, 2020 3:33 am
Re: Using Color444 or 888 on 32x32 matrix
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.
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.
- andrew777
- Posts: 5
- Joined: Sun Jan 15, 2023 10:04 am
Re: Using Color444 or 888 on 32x32 matrix
I am using the RGBmatrixPanel lib with 8 bit depth.
- blnkjns
- Posts: 963
- Joined: Fri Oct 02, 2020 3:33 am
Re: Using Color444 or 888 on 32x32 matrix
It looks like a memory problem. Try it with the protomatter library instead.
- andrew777
- Posts: 5
- Joined: Sun Jan 15, 2023 10:04 am
Re: Using Color444 or 888 on 32x32 matrix
Was off for a couple days. Thanks will try 👍🏻
Please be positive and constructive with your questions and comments.