I'm running that code 25 times to refresh all my LEDs. Basically, I've maxed out the baud and i'm not getting the quickness to refresh the LEDs fast enough.
Essentially sending all the data i need for one full refresh of the LEDs in one chunk. Then i'd have to split the 'chunk' in arduino using the commas. If this would be faster, is there I way i can shove all the data into an array? So to access the blue value of LED 3, i'd reference ledArray[8]? I know you can do this in Processing using split(), but i've no idea in arduino!
I only have 25 LEDs! Ha. Yes, the 3 bytes are to define the colors. I'd like to refresh them... at a guess every 1 ms... The fading in lasts about 250 ms but they don't really fade in, they just get brighter in 3 or 4 stages. So do you think that's as fast as I'll be able to get it? I'm guessing there's no other live methods for communication between Processing and an arduino? Thanks for the reply!
Thanks for that! After a bit of messing about I've decided I'm going to implement this a different way. Instead of sending serial data constantly to update the LEDs, I'm going to have a bunch of transitions in arduino which can be activated by processing and which are passed data, for example for a pulse effect, fade in time, fade out time, colour and duration. That way I'm sending minimal data and updating the LEDs is lightning quick too! Thanks!