[Serial]
説明
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.
構文
All boards:
Serial.parseInt()
Serial1.parseInt()
86Duino One specific:
Serial2.parseInt()
Serial3.parseInt()
Serial485.parseInt()
86Duino EduCake specific:
Serial2.parseInt()
Serial3.parseInt()
Serial232.parseInt()
媒介変数
none
戻り値
int : the next valid integer
See also
- if (Serial)
- available()
- begin()
- end()
- find()
- findUntil()
- flush()
- parseFloat()
- peek()
- print()
- println()
- read()
- readBytes()
- readBytesUntil()
- setTimeout()
- write()
- serialEvent()
Language Reference Home
86Duino のリファレンスのテキストは Arduino レファレンス を編集したもので、 Creative Commons Attribution-ShareAlike 3.0 License下でライセンスされています。リファレンス内のコードサンプルはパブリックドメインとして公開されています。