I am trying to use the PWM command, when I use the command once in the program there is no output from that pin, but when I use a loop which uses the command it now works - why is this I thought it runs in the background continuously. Also how do I determine how many pulses out I have sent...