Go Down

Topic: Pause and wait for keyboard entery (Read 157 times) previous topic - next topic

Nick Gammon

I know that's what it does, but it's not documented. There's no guarantee that the next Arduino board won't just return the most-recent char when there's no new Serial data available.
Yes, it's documented: https://www.arduino.cc/en/Serial/Read

Quote
Returns

the first byte of incoming serial data available (or -1 if no data is available)
There is no way they would get away with changing that.
Please post technical questions on the forum, not by personal message. Thanks!

More info:
http://www.gammon.com.au/electronics

Go Up