|
<< Click to Display Table of Contents >> Navigation: Serial > parseInt() |
Description
Looks for the next valid integer in the incoming serial stream. parseInt() inherits from the Stream utility class.
If no valid integer is found within one second (adjustable through Serial.setTimeout() ) a default value of 0 will be returned.
Syntax
Serial.parseInt()
Arduino Mega only:
Serial1.parseInt()
Serial2.parseInt()
Serial3.parseInt()