Embedded Flashcards
1
Q
Arduino: How is serial communication library initialized?
A
Serial.begin(9600) // or some other baud rate.
char x = Serial.read(); // gets next byte from receive bfr.
int n = Serial.available(); // retruns total bytes currently in recv bfr.
int n = Serial.parseInt(); // Reads integer.