5 x 8 led matrix

Hi

I am using the arduino Uno. I have the Lite-On LTP-2158AHR 5x8 led matrix I have that hooked to the MAX7219 chip.

I have the Led's laid on the side. I have tried several of the codes on the forum and am not able to get it to work with the 5x8 it cuts off the top of th letters like it is looking at an 8x8.

I need to know how to change the code to make it work with the 5X8 and how to reverse the scrolling direction.

I believe I need to change the following;

B01100000, // (Char 0x7F)
B10010000,
B10010000,
B01100000,
B00000000,
B00000000,
B00000000,

To

B01100000, // (Char 0x7F)
B10010000,
B10010000,
B01100000,
B00000000,

Is this correct?

Thanks

Here is the code I am using

sketch_mar31b.ino (15.1 KB)

sketch_mar31b.ino (15.1 KB)

Hi Marty, you have more chance of help if you include your sketch in your post, instead of attaching it. Many forum members will be browsing on phones and tablets and opening an attachment may not be easy. Remember to use code tags!

Also, please explain "I have the Led's laid on the side". I think I know what you mean but want to be sure. When you say "reverse" the scrolling, do you mean rotate it by 90°?

Paul

Yes I did try to paste it in the post area but it would not allow it as it said it was too large. yes laid on it's side means I am using it as 5 leds tall and 8 wide