10000000 = 128... bit 7
01000000 = 64 .... bit 6
00100000 = 32 .... bit 5
00010000 = 16 .... bit 4
00001000 = 8 ...... bit 3
00000100 = 4 ...... bit 2
00000010 = 2 ...... bit 1
00000001 = 1 ...... bit 0
if I want to manipulate bit 3 I can AND ,OR and XOR with...
C:
//... lets assume backbuffer location = 0xff.
mask = backbuffer[location]; // .... get the state of the row of LED's
x = pow[3]; //... x now equals 8
mask ^= x; // XOR 0xff with 0x08;
mask |= x; // OR 0xff with 0x08;
The way you were doing row scanning was giving good brightness to LED!
so, can we do scanning for all fonts which was used in column scanning( i mean to say the buffer created by that method?) ??
one more question can't we send the buffer data in such away that the connection LEFT to right or it s opp right to left can be changed by software......
What do you mean... The font IS in an arry... fnt[];..
When you specify an array with no size... then initialize with the contents, the array can be traversed through like any array..
one more question can't we send the buffer data in such away that the connection LEFT to right or it s opp right to left can be changed by software......
Look at this..... To fully understand "plotting pixels"
You make a pixel routine to identify the bits (LED's) in a picture so you can turn them off or on
The LED's are in an array of 32x8... We draw a picture to fit
As you can see the pixels match the screen..
We we plot the pixels we make the buffer the same shape as the array of LED's ie 4 bytes in a row and 8 rows.
to locate ANY LED within the array... take 5 across and 3 down from the left.. We normally call the variables x and y..
y is 3 down so we need 3 rows of 4 bytes.. and as its in the next row we now work out how far across x is there are 8 leds to one byte
so LED will be in buffer [ 3 * 4 + 5 / 8 ].. so buffer[13]...The pixel is modulus 8 5 mod 8 = 5.. The pow table selects the bit_weight.... pow[5] = bit 4...
The bits are right to left ( same as the T6963C) to rotate them just mirror the POW table...
HI,
I am working on LED display PCB designing so, i need to what will be better for scanning :
1. The column connected as we were doing originally in past ||||||||| like this?
2. The Row section connection as you suggest in previous post??
1 2 3 4
5 6 7 8 like this??
and which shift register to be use 74hc164 or any other???