I have a 64x64 LED Matrix connected to my Arduino Mega 2560, and i want to be able to light up each LED with a chosen color through sending data via the serial to the Arduino.
Now since i want to be able to display pictures etc on the LED, i would have to send alot of data through the serial, and process it on the Arduino.
I have experimented a little bit by sending serial data in the format of the following:
where the the messages is defined to be between the ‘<’ and ‘>’, and each value between the commas is a color representation that i want a individual LED to light up. Each of these values is in the order as it should be printed out on the LED, i.e first value (333) is the pixel at x:0 y:0 , next at x:1 y:0 … etc.
Now since the LED matrix has 4096 pixels, the data sent through the serial would be very much, and i can’t store the whole message in, for example, a array.
Is the best way to split the serial data up in smaller pieces, where when each piece arrives i process it and light up the pixels? Or are there any better solution to this?