Let the LED flash 3 times without using a blocking code
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2021-01-27 7:02 AM
The point is that when you press a button, an LED should flash three times.
If you press the button again while it is flashing, the LED must flash 3 times again.
The whole thing should be implemented without blocking code.
I could could use a loop to make the LED blink 3x, but then I would have implicit blocking code in there again.
How can I implement this without blocking code?
Labels:
- Labels:
-
TIM
This discussion is locked. Please start a new topic to ask your question.
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2021-01-27 7:16 AM
Set up a timer to flash the LED with PWM and set the repetition counter accordingly. Start the timer as one short.
