Question: C CODE ONLY! *******ONLY USE while loop! no other loop!******** Sample code I was given. build the code exactly like the one below. 1. Complete

C CODE ONLY!

*******ONLY USE while loop! no other loop!********

C CODE ONLY! *******ONLY USE while loop! no other loop!******** Sample code

Sample code I was given. build the code exactly like the one below.

I was given. build the code exactly like the one below. 1.

1. Complete Lab Exercise 2: Lights On - Lights Off. 2. Challenge: Build a circuit and make one program for the following tasks: a) Build a circuit for two LEDs and one Bi-color LED to be controlled by Propeller BOE at the same time. b) Turn on the first LED for 0.5 seconds, then off. Wait 1 second, and then turn on the second LED for 1.5 seconds and then off. Wait for 1 second. Then blink both LED's on for 1/2 second and off for 1 second. Repeat this for three times before continuing to next step c. c) Turn on both LEDs for 1 second. While these two LEDs are on, display one color for bi-color LED. Turn off both LEDs for 1 second and display different color for bi-color LED at the same time. After repeating this step c three times, continue to step d. d) Repeat parts b and c indefinitely. Blink Two Lights.c #include "simpletools.h" // Include simple tools int main() // Main function while(1) // infinite loop high (14); // Set P14 I/O pin high - ON high(15); pause (200); // Wait 200 ms low(14); // Set P14 I/O pin low - OFF low (15); pause (200); // Wait 200 ms 1. Complete Lab Exercise 2: Lights On - Lights Off. 2. Challenge: Build a circuit and make one program for the following tasks: a) Build a circuit for two LEDs and one Bi-color LED to be controlled by Propeller BOE at the same time. b) Turn on the first LED for 0.5 seconds, then off. Wait 1 second, and then turn on the second LED for 1.5 seconds and then off. Wait for 1 second. Then blink both LED's on for 1/2 second and off for 1 second. Repeat this for three times before continuing to next step c. c) Turn on both LEDs for 1 second. While these two LEDs are on, display one color for bi-color LED. Turn off both LEDs for 1 second and display different color for bi-color LED at the same time. After repeating this step c three times, continue to step d. d) Repeat parts b and c indefinitely. Blink Two Lights.c #include "simpletools.h" // Include simple tools int main() // Main function while(1) // infinite loop high (14); // Set P14 I/O pin high - ON high(15); pause (200); // Wait 200 ms low(14); // Set P14 I/O pin low - OFF low (15); pause (200); // Wait 200 ms

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!