Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

is the flowchart right based on arduino code # define RLED 1 0 # define YLED 9 # define GLED 8 # define SWT

is the flowchart right based on arduino code "# define RLED10
# define YLED9
# define GLED8
# define SWT6
void setup()
{
pinmode(RLED,OUTPUT);
pinmode(YLED,OUTPUT);
pinmode(GLED,OUTPUT);
pinmode(SWT,INTPUT);
}
boolean swVal;
void loop()
{
swVal=digitalRead(SWT);
If(swVal==LOW)
{
digitalWrite(RLED,HIGH);
digitalWrite(YLED,HIGH);
digitalWrite(GLED,HIGH);
delay(250);
digitalWrite(RLED,LOW);
digitalWrite(YLED,LOW);
digitalWrite(GLED,LOW);
delay(250);
}
else
{
digitalWrite(RLED,HIGH);
digitalWrite(YLED,HIGH);
digitalWrite(GLED,HIGH);
delay(1000);
digitalWrite(RLED,LOW);
digitalWrite(YLED,LOW);
digitalWrite(GLED,LOW);
delay(1000);
}
}"?
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_2

Step: 3

blur-text-image_3

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

Big Data 29th British National Conference On Databases Bncod 2013 Oxford Uk July 2013 Proceedings Lncs 7968

Authors: Dan Olteanu ,Georg Gottlob ,Christian Schallhart

2013th Edition

3642394663, 978-3642394669

More Books

Students also viewed these Databases questions