Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In the table below, specify the purpose of each line of code from the Sending Input to the Arduino program demonstrated in class, and redisplayed

In the table below, specify the purpose of each line of code from the "Sending Input to the Arduino" program
demonstrated in class, and redisplayed below (//LINE 1,//LINE 2, etc.).
Table 1. Specification for select lines of code from the "Sending Input to the Arduino" program.
String arduinoInput;
void setup()
pinMode (13, OUTPUT); //IINE 1
Serial.begin(9600); ///LINE 2
?
void loop ()
while(!Serial.available ()): //LINE 3
arduinoInput = Serial * readString ();//LINE 4
if(arduinoInput. equalsIgnoreCase("ON"))//LINE 5
i
Serial.println("Turning the IED on..."); //LINE 6
digitalWrite (13, HIGH); //LINE ?
}
else if(arduinoInput.equalsIgnoreCase("OFF"))//LINE 8
1
Serial.printin("Turning the LED off.."); //LINE 9
digitalWrite (13, LOW) ;
1
else //LINE 10
{
Serial.printin("Unknown comand"); //IINE 11
1
?
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advances In Databases And Information Systems Uropean Conference Adbis 2020 Lyon France August 25 27 2020 Proceedings Lncs 12245

Authors: Jerome Darmont ,Boris Novikov ,Robert Wrembel

1st Edition

3030548317, 978-3030548315

Students also viewed these Databases questions

Question

design a simple disciplinary and grievance procedure.

Answered: 1 week ago