16x32 LED Matrix Library Fix?!?

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
KyleMac
 
Posts: 5
Joined: Mon Mar 30, 2015 11:38 am

16x32 LED Matrix Library Fix?!?

Post by KyleMac »

Hello All,
I'm really hoping someone can help me out by explaining and showing me how to fix the 16x32 LED Matrix library. For some reason, the library doesn't correspond to the 16x32 sketch examples. The sketch defines LAT A3 which DOES NOT work with the library. After changing the #define LAT A3 line to #define LAT 10, the matrix lights up accordingly and seems to work. HOWEVER, the top right (or bottom left depending how you look at it) LED wont light up now and intern affects the square of leds around it. I'm assuming this is because that LED corresponded to pin 10. I tried looking in the .cpp and .h files but was overwhelmed and couldn't find anything that would help me. If anyone knows how to fix this, I would GREATLY appreciate it. Here's a picture of what I'm talking about http://mail.rsgc.on.ca/~kmacmillan/FOV2 ... -00802.jpg

User avatar
adafruit_support_mike
 
Posts: 67485
Joined: Thu Feb 11, 2010 2:51 pm

Re: 16x32 LED Matrix Library Fix?!?

Post by adafruit_support_mike »

Your photo matches the one shown on the tutorial page:
https://learn.adafruit.com/assets/2959

The blank pixel in the corner is the correct value for the sequence of colors being displayed: (0, 0, 0).

User avatar
KyleMac
 
Posts: 5
Joined: Mon Mar 30, 2015 11:38 am

Re: 16x32 LED Matrix Library Fix?!?

Post by KyleMac »

Okay. Thank you for the reply. Do you know why it is displaying (0,0,0) only in that corner and why that square of colors appears to be brighter than the rest?

User avatar
adafruit_support_mike
 
Posts: 67485
Joined: Thu Feb 11, 2010 2:51 pm

Re: 16x32 LED Matrix Library Fix?!?

Post by adafruit_support_mike »

That display represents 8 slices through the RGB color space.

Within a square:

- All pixels in the same row have the same red value
- All pixels in the same column have the same green value
- All pixels in the square have the same blue value

The value for row 0, column 0, square 0 is (0,0,0).

The change in component value from one row/column/square and its neighbors is 32.

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

Return to “Arduino”