A loop in an mbed program is untidily coded as follows: While (1){ redled = 0; wait_ms(12);

Question:

A loop in an mbed program is untidily coded as follows: 

While (1){
redled = 0;
wait_ms(12);
greenled = 1;
wait(0.002);
greenled = 0;
wait_us(24000);
}

What is the total period of the loop, expressed in seconds, milliseconds, and microseconds?

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: