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
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
