Beruflich Dokumente
Kultur Dokumente
• Textes, variables
USB
Ecran FTDI Microcontôleur
Clavier
Serial.begin (bitrate) ;
Serial.print ( ) ;
Serial.println ( ) ;
LF \n New line – line feed
CR \r Carriage return
CRLF \r\n
char recu ;
Serial.available () void loop () {
USB if (Serial.available() > 0) {
Ecran
... recu = Serial.read();
Serial.print (“J’ai tape: ");
tampon
Serial.print (recu);
Serial.print (“ = 0x”);
Clavier
Serial.println (recu,HEX);
}
Il y a des fonctions pour gérer le tampon }
Serial.Flush () etc
A-entrée J’ai tape 65 = 0x41
randomSeed (valeurInit );