Answered step by step
Verified Expert Solution
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 LINE etc.
Table Specification for select lines of code from the "Sending Input to the Arduino" program.
String arduinoInput;
void setup
pinMode OUTPUT; IINE
Serial.begin; LINE
void loop
whileSerial.available : LINE
arduinoInput Serial readString ;LINE
ifarduinoInput equalsIgnoreCaseONLINE
i
Serial.printlnTurning the IED on; LINE
digitalWrite HIGH; LINE
else ifarduinoInputequalsIgnoreCaseOFFLINE
Serial.printinTurning the LED off.."; LINE
digitalWrite LOW ;
else LINE
Serial.printinUnknown comand"; IINE
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started