I started messing around with my MSP430 after a few months hiatus, and now I need some help with my for() loop.
I need a loop to blink my LED1 in a specific way. Like this, blink(1) and a very short delay, then next blink. At the end of each blinking line, there should be a bit longer delay to indicate "new line".
1
11
111
1111
11111
111111
1111111
11111111
111111111
1111111111
At the very end, some fast flash is supposed to occur. But I have no idea on how to create this for loop.
And while writing this post, I came to think of just doing 10 separate for() loops, so I can get that longer delay in. But any better suggestions?
I need a loop to blink my LED1 in a specific way. Like this, blink(1) and a very short delay, then next blink. At the end of each blinking line, there should be a bit longer delay to indicate "new line".
1
11
111
1111
11111
111111
1111111
11111111
111111111
1111111111
At the very end, some fast flash is supposed to occur. But I have no idea on how to create this for loop.
And while writing this post, I came to think of just doing 10 separate for() loops, so I can get that longer delay in. But any better suggestions?