Serial is useful for sending information and data back to your computer, from Arduino. Arduino can pass this information through the USB cable to your computer. Your computer can then show it to you.
It takes several different kinds of inputs.
- a String in quotes, like this:
intor another type of number, like this:
- a reading from an Awesome Shield component, like this:
- a variable (in this case called
brightness), like this:
It sends the input back to your computer as text. You can view this text by clicking the magnifying glass icon in the top right hand corner of your Arduino IDE window.
Serial.println() is really helpful if you want to see the live value of a variable while the Arduino is running your program.