Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
7 years, 9 months ago.
Code to make the LEDs flash SOS
What I want:
All LEDS to come on & stay on a short time Turn off Do the above 3 times
All LEDS to come on & stay on a longer time Turn off Do the above 3 times
Do the first loop again all LEDs turn on 3 times a short time.
Is there a short way to tell the LEDs to all come on? Or do I have to:
myled1 = 1 myled2 =1 myled3 =1 myled4 =1 wait ....
I don't want to type this out (or even copy and paste) that much. There has to be a simple way to tell all LEDs to come on at once and go off at once, etc.
Is there?