I'm sending streams of data from arduino to processing. I need to have one character of my choosing, for example "S" to be triggered by a switch on one of the arduino pins.
The "S" will be read by processing and converted into a boolean.
I was wondering what serial method to use to read the "S". I am thinking of using readBytesUntil() or lastChar. That way, only the " S" gets read. Anyone with better suggestions?