I've looked through the documentation of RPIO, and used GPIO18 to get my PWM up and running.
This is my code:
from RPIO import PWM servo = PWM.Servo() servo.set_servo(18, 4000)
As explained in the example in the documentation, this is supposed to set a 4000us (4ms) pulse every 20ms.
However, when I run the code - the LED blinks only once - indicating that there was only one instance of the pulse. Even when I check it with an oscilloscope - I am able to fleetingly catch a singular pulse.
Isn't the code supposed to generate an indefinite PWM wave, like one froma function generator?
How do I go about getting a sustained PWM wave as opposed to just a single pulse? I only wish to use RPIO since it is DMA based.