Skip to content
Discussion options

You must be logged in to vote

Hi @PerennialNovice
I found the correct way to do this.
In fact you don't need to pause the timer.
Simpy change the mode to

MyTim->setMode(2, TIMER_OUTPUT_COMPARE_FORCED_INACTIVE, redLEDPin);

Then to restore:
MyTim->setMode(2, TIMER_OUTPUT_COMPARE_TOGGLE, redLEDPin);

Replies: 3 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@fpistm
Comment options

@PerennialNovice
Comment options

Comment options

You must be logged in to vote
4 replies
@fpistm
Comment options

@PerennialNovice
Comment options

@fpistm
Comment options

Answer selected by PerennialNovice
@PerennialNovice
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants