Go Down

Topic: Displaying a letter in 8x5 LED Matrix (Read 847 times) previous topic - next topic

rishi_ar

okay,
Now I have an entirely new problem.

In my 5 row 8 column hardware, all cathode are connected column wise. So that way if Is send 11111110 as column bit, the LED corresponding to bit 0 glows up and rest are OFF. Now if I left shift it by 1 ((11111110)<<1) I get 11111100 and this result in two LED lighting up but I want 11111101 when it left shifts by 1 (Kind of circular shift so that new bit 0 is replaced by bit 7) of the same byte ?

Is this possible ?? I could not figure out a way

CrossRoads

#16
Aug 18, 2014, 07:23 am Last Edit: Aug 18, 2014, 07:25 am by CrossRoads Reason: 1
That kind of messiness is why have the bytes from memory represent the "vertical" data:

each column is 1 byte of memory, with the upper 3 bits not used, so "A b" might look like this:
Code: [Select]

00000000
00000000
00000000
11111000
10011000
11111111
10011001
10011111


 

Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

rishi_ar

Well,

I did not get it.

Can you elaborate if you don't mind.

Go Up