I'm new to C and the Arduino and really struggling with something (I'm sure) very simple. I've found a number of serial-related examples etc, but nothing that helps. Apologies if my searching is pathetic, but I'm sure help with this will set me flying.
There should be no need to bore you with the whys and wherefores:
Read serial If byteOne == 176, grab the next byte and call it byteTwo If byteTwo == 21, grab byteThree and go to a subroutine to use byteTwo and byteThree Go round again
I can read a byte and blink if it == whatever, I just can't see how to capture successive bytes like this.
A simple example will be very gratefully Rxd! Steve.