Using a geometric series to control many LEDs

If you don't put an "end of string" marker ('\0') in your buffer, the string in the buffer continues until it reaches a \0. If you send "1234" followed by "AB" the buffer will contain the string "AB34".