Serial_Reading by almarion

Cloned from Sketch Serial_Reading by lfmiller27

This sketch is missing a short description
Three examples of reading the serial buffer after determining the number of bytes present using the Serial.available() function: ==> Loop read byte by byte w/o storing data ==> Loop read byte by byte and store in a variable ==> Read to variable as a block looking for a terminator character, a fixed number of bytes or until a timeout after all the data is in

Embed This Sketch

Use the following HTML code to embed the sketch code above in your blog or website.

<iframe style="height: 510px; width: 100%; margin: 10px 0 10px;" allowTransparency="true" src="https://codebender.cc/embed/sketch:312407" frameborder="0"></iframe>

Embed The Serial Monitor

You can also embed the Serial Monitor section! Just use this HTML code.

<iframe style="height: 510px; width: 100%; margin: 10px 0 10px;" allowTransparency="true" src="https://codebender.cc/embed/serialmonitor" frameborder="0"></iframe>