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);
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?
Step by Step Solution
3.53 Rating (153 Votes )
There are 3 Steps involved in it
The total period of the loop will be equal to the sum of all the delay times in the loop w... View full answer
Get step-by-step solutions from verified subject matter experts
