liamNissan
Member
I am working on a project that involves an rgb LED matrix. I want to be able to have a faster refresh rate and have looked into DMA. I have the basics down doing transfers from one array to another but now I am trying to find a way to take 1 bit from each buffer and put that together to and write it to a port as a byte. Lets say I am doing 8 bit colour, I have a 3 bytes for each pixel on for red, green, and blue. I have these each in their own multidimensional arrays, and for each pixel I write there is a data line for red, green, and blue, so to use BAM I would need to take the first bit of each pixel, then the second, and so on (obviously each bit is going for longer). Is the scatter/gather method the best for this and if so how would I do it. I don't want to use the dma.h library because I want to get a good understanding of everything.
P.S. I am sorry if it is hard to understand my question I will provide clarification if need be.
P.S. I am sorry if it is hard to understand my question I will provide clarification if need be.