How many LEDs are you trying to illuminate.... What is the Hfe of your BJT... Is it the Red LEDs or the others that give the problem...
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
How many LEDs are you trying to illuminate.... What is the Hfe of your BJT... Is it the Red LEDs or the others that give the problem...
for(x=0;x<33;x++)
{
buffer[x] = buffer[x+1]; // shift all the columns <--
__delay_ms(1.5); // so you can see it
}
///at the beginning of the display routine
char index = 0;
// then in the loop after the scrolling..
if(++index == 4)
{
__delay_ms(1000); // 1 second
index = 0;
}
The code has essentially two loops.... The buffer shift loop... Then the character loop.... if you create a variable.. Lets say "index" then for every so many characters in the string put in a delay then when so many characters have been processed it code will stop for a bit...
If we say 4 characters..
Oh! Have you an updated schematic?...
If you doubled your shift register to 60 columns then if the red LED's were on every even clock... and the yellows were on every odd clock, would that do it?
You could do some great graphics.... I would have thought you could invert the columns to show 1 color and normal would show the other.
there are two types of led planar glass(transparent one) and colored glass ...which should be preferred??