Complete the code to pause the program for 1000 milliseconds.
delay([1]);The delay() function pauses the program for the number of milliseconds given as the argument. Here, 1000 means 1 second.
Complete the code to pause the program for half a second.
delay([1]);500 milliseconds is half a second, so delay(500); pauses the program for 0.5 seconds.
Fix the error in the code to correctly pause for 2 seconds.
delay([1]);The delay() function expects milliseconds. 2000 milliseconds equals 2 seconds.
Fill both blanks to create a delay of 3 seconds and then 500 milliseconds.
delay([1]); delay([2]);
The first delay(3000); pauses for 3 seconds, and the second delay(500); pauses for half a second.
Fill all three blanks to create a sequence of delays: 1 second, 2 seconds, and 750 milliseconds.
delay([1]); delay([2]); delay([3]);
The delays are 1 second (1000 ms), 2 seconds (2000 ms), and 750 milliseconds respectively.
