Serial.flush()
Description
Vide le buffer de réception de données du port série. Par conséquent, tout appel de la fonction Serial.read() ou Serial.avalaible() renverra seulement les données reçues après le plus récent appel de la fonction Serial.flush().
Syntaxe
Paramètres
- Aucun
Valeurs Renvoyées
- Aucune
※ Remarque:
Serial functions are not only used for the communication between an Arduino board and Serial Monitor of Arduino IDE but also used for the communication between:
- An Arduino board and other Arduino board
- An Arduino board and other sensors/devices
- An Arduino board and computer (any Serial software on computer)
Voir Également
- Langage: Arduino - Serial
- Langage: Serial.available()
- Langage: Serial.begin()
- Langage: Serial.find()
- Langage: Serial.findUntil()
- Langage: Serial.parseFloat()
- Langage: Serial.parseInt()
- Langage: Serial.peek()
- Langage: Serial.print()
- Langage: Serial.println()
- Langage: Serial.read()
- Langage: Serial.readBytes()
- Langage: Serial.readBytesUntil()
- Langage: Serial.setTimeout()
- Langage: Serial.write()
※ ARDUINO BUY RECOMMENDATION
Arduino UNO R3 | |
Arduino Starter Kit |