Loading...

Serial.ParseInt History

Show minor edits - Show changes to markup

June 05, 2013, at 12:46 PM by Scott Fitzgerald -
Added lines 9-10:

If no valid integer is found within one second (adjustable through Serial.setTimeout() ) a default value of 0 will be returned.

Changed lines 27-34 from:

Example

(:source lang=arduino:)

(:sourceend:)

to:

April 16, 2012, at 02:34 PM by Scott Fitzgerald -
Added lines 1-38:

Serial

parseInt()

Description

Looks for the next valid integer in the incoming serial stream. parseInt() inherits from the Stream utility class.

Syntax

Serial.parseInt()

Arduino Mega only:
Serial1.parseInt()
Serial2.parseInt()
Serial3.parseInt()

Parameters

none

Returns

int : the next valid integer

Example

(:source lang=arduino:)

(:sourceend:)

See also

(:include Reference/SerialSeeAlsoIncludes:)

Reference Home




Bookmark and Share