설명
Called when data is available. Use Serial.read()
to capture this data.
문법
void serialEvent() {
//statements
}
Arduino Mega only:
void serialEvent1() {
//statements
}
void serialEvent2() {
//statements
}
void serialEvent3() {
//statements
}
매개변수
statements
: any valid statements
반환
Nothing