Making a Light Flash
Task 1 -> Task 2 -> Task 3
What you have created is an infinite loop. It will keep going from now until the end of the world (whenever that will be…) Say we want to make the light flash 10 times then stop. To do this we need to use a sub routine. You will need a main program and sub routine. To set up a sub routine put the name of the sub routine in the start box in place of ‘start’. | |
To run a sub routine 10 times use the process box as below… | |
The main program will look like this… | |
Run your program to test it. Save it. |