Introducing
Your new presentation assistant.
Refine, enhance, and tailor your content, source relevant images, and edit visuals quicker than ever before.
Trending searches
Look closely at the following lines of code which was adapted from the interactive System code we worked with on yesterday. What is the purpose of the Serial.println() method?
else if (systemFunction == 2){
Sensor_value = analogRead(SensorPin);
Serial.println(Sensor_value);
delay(200);
brightness = map(Sensor_value, Limit_Low, Limit_High, 255, 0);
analogWrite(ledPin,brightness);
}
When things aren't working the way we'd hoped, We need a way of determining what the system is returning to troubleshoot accurately. Serial.println() allows usto see what is being returned.
today's Agenda
Lesson Objective
I can use serial communication to create an interactive system.
Mastery Skills
Assignment 02.27 Interactive System
To complete:
1. Pick up your assigned Macbook (you must work with a partner for this assignment)
2. Go to classroom.google.com and open 02.27 Interactive System
3. Read all instructions, answer all questions, and answer all screenshots.
Please find your seat and take out a writing utensil and notebook.