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.
Thank you for your suggestion, but is it possible to use a function to do it? because i was looking for something simple. say i have function A and function B. i was hoping i could just do something like ABBBABBBAAAAABBBBABBB etc. to simplify making an entire animation on the matrix.
Thank you for your suggestion, but is it possible to use a function to do it? because i was looking for something simple. say i have function A and function B. i was hoping i could just do something like ABBBABBBAAAAABBBBABBB etc. to simplify making an entire animation on the matrix.