I'm currently using an Arduino Nano to control a LED matrix consisting of 64 PL9823 LEDs with the help of the FastLED library. To select the various animations, I wanted to use a HC05 bluetooth adapter in combination with my phone. After building and programming the matrix, I wanted to implement the bluetooth control.
My problem there is that I don't know how to read the incoming serial data while the Arduino is controlling the matrix. I've tried to use the serial signal as an interrupt signal so that the animation changes directly, but that didn't work. Is there some other way to solve this?
The animation doesn't have to change immediately, but that would be nice if it's possible. I am also using a selfmade delay function with millis() instead of the normal delay() function to time the animations.