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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly