Safe multitasking
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2021-05-10 7:19 AM
What is the best way and safer way to make one led blinked and, at the same time, control one motor?
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-05-10 3:02 PM
You could set the LED on a timer pin and have it generate a PWM signal with no CPU usage. Then you can control the motor.
Pretty high-level question. The "best" approach will depend on the details. Doing multiple things at once are why RTOSs exist, if you can accept the complexity/issues that come with them.
If you feel a post has answered your question, please click "Accept as Solution".
