Fast ?? on PWMOUT command

Hansen

Member
I want continue PWMOUT on my PIN2

shut the command then use as in main or can it be don as main 2


main:
pwmout 2, 99, 40
goto main

main2
pwmout 2, 99, 40
rest off the program
 

BeanieBots

Moderator
Sorry, but I don't understand your question.
Please explain in more detail what you want to do.
(maybe use plain English rather than a code example)
 

Andrew Cowan

Senior Member
PWMout will run in the background - once you have used a 'pwmout' command, it will keep running until the end of the program, or until you tell it to stop.

Does that help - I don't understand your question.

Andrew
 

Hansen

Member
PWMout will run in the background - once you have used a 'pwmout' command, it will keep running until the end of the program, or until you tell it to stop.

Does that help - I don't understand your question.

Andrew
Yes that help a lot, it was the answer i look for

the how do i stop it if I have started it
 

BeanieBots

Moderator
Also, you should avoid having the "pwmout" within your loop.
It only needs to be set once.

eg
pwmout 2, 99, 40
Do:Loop
 
Top