Intro to Physical Computing
W2
W3
W4
W5
Midterm
W7
W8
W10
Final





readLine() gives me a complete piece of data, while read() only returns a single character and breaks everything apart.What Arduino Really Sends
In my Arduino code, I print sensor values like this:
Serial.println(sensorValue);println()doesn’t just send the number. It sends
'49' '50' '51'
readLine() Does
inData = serial.readLine();
readLine() patiently waits until it reaches the newline character"123"
Once I realized this,
the whole data flow felt almost elegan