Question
HW05-1 Develop an algorithm which generates an infinite loop with two LED outputs: Each iteration is approximately 1 second. Define one variable, LED1, for the
HW05-1 Develop an algorithm which generates an infinite loop with two LED outputs:
Each iteration is approximately 1 second.
Define one variable, LED1, for the Red LED.
Define another variable, LED2, for the Green LED.
The Red LED turns ON for 500ms, then turns OFF 500ms, every iteration.
The Green LED turns ON when the Red LED is OFF, and OFF when the Red LED is ON.
Document this algorithm using a flowchart or pseudo-code.
HW05-2 Write a Energia sketch which implements the algorithm developed in HW05-1.
Document this function with Energia comments. Observe the operation of your sketch and verify that it matches your expectations.
HW05-3 Develop an algorithm which generates an infinite loop with two LED outputs:
Each iteration is approximately 1 second.
Define one variable, LED1, for the Green LED.
Define another variable, LED2, for the Red LED.
Initialize an integer variable, X, to count the iterations.
The Green LED turns ON (500ms) every iteration.
The Red LED turns ON (500ms) once every tenth iteration.
Document this algorithm using a flowchart or pseudo-code.
HW05-4 Write a Energia sketch which implements the algorithm developed in HW05-1.
Document this function with Energia comments. Observe the operation of your sketch and verify that it matches your expectations.
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