Table of Contents
Using Serial Communication
Method used to transfer data between two devices.
Serial Monitor & analogRead()
Sending a Message
void setup()
{
// initialize serial:
...
Serial.println(“is Fun!!!”) ;
}
Homework Exercise
...
- When the switch is off
- The message OFF is repeatedly printed via Serial, and the system will not do anything else
- When the switch is on
- The LED will gradually turn on or off at a speed which is related to the amount of light failing on the LDR
- The message ON is repeatedly printed via Serial
...