I have data streaming over serial in bytes. What is the easiest way to read this data in? : <p>I have written an application that streams pixel information over serial to an arduino. </p>

<p>I want to be able to stream 100 pixels at 24fps which should be possible if I run the serial connection at 115200 baud.</p>

<p>(24fps * 100 pixels * 5 bytes * 8 bits) = 96,000 bps</p>

<p>for each pixel of each frame I am sending a total of 5 bytes</p>

<p>byte 1: Pixel index number 0-100
byte 2: Red value 0-254
byte 3: Green value 0-254
byte 4: Blue value 0-254
byte 5: Pixel delimiter byte = 255</p>

<p>these are all being streamed as raw bytes over the serial connection to the arduino. </p>

<p>What is going to be the easiest way to reliably get these bytes into ints so I can pass them to fastLED to display them on neopixels?</p>
