MIDI CC Serial - LED Brightness Issue

Is this what you had in mind?

Yes, but I'm curious why you need there to be 25 bytes in the buffer before you read 3, over and over, until there are less than 25 bytes to read, leaving 23 or 24 bytes in the buffer.