anschau
Newbie level 4
Hello, i am currently trying to make a led matrix. I am running all the leds off of 8 74HC595 shift registers linked together. my problem is that i have 64 leds to control and to set each led high or low i have to do something like this.
PORTA = 0b00000001;
PORTA = 0b00000010;
PORTA = 0b00000100;
that is to set one led to high, and doing that 64 times for one image takes a lot of time. I know there is a simpler way to this. I tried using a function like this.
PIN_HIGH {
PORTA = 0b00000001;
PORTA = 0b00000010;
PORTA = 0b00000100;
}
but it did not work. I am not sure what i am doing wrong here. Any help would be much appreciated.
PORTA = 0b00000001;
PORTA = 0b00000010;
PORTA = 0b00000100;
that is to set one led to high, and doing that 64 times for one image takes a lot of time. I know there is a simpler way to this. I tried using a function like this.
PIN_HIGH {
PORTA = 0b00000001;
PORTA = 0b00000010;
PORTA = 0b00000100;
}
but it did not work. I am not sure what i am doing wrong here. Any help would be much appreciated.