top of page

WEEK 6
Serial Communication

Lab 1 Serial input Questions

What does Number() mean? Is it similar to int()?    -YES.

It prints undefined when I tried to apply serial.readLine();

With if(inString.length>0), will 1023 be read as 1, the first digit?

Lab 2 Serial output Questions

Why Arduino send inByte (serial.read) out? Where to send it to?

-The microcontroller sends it to p5. So, in the P5, you can check what the Arduino receives, and if it is what you sent. 

How does the computer know what 'data' is, what 'error' is, and what 'list' is? Are they build-in events?

Yes.

Why String.parseInt does not translate numeric characters? 

Is it possible for the p5 to send two values at the same time?

Yes. It is multi-message communication

bottom of page