diff options
| author | Dan Halbert <halbert@halwitz.org> | 2018-10-16 11:05:02 -0400 |
|---|---|---|
| committer | Dan Halbert <halbert@halwitz.org> | 2018-10-16 11:05:02 -0400 |
| commit | 2262efc31155cfb498c5ecbfb64be16839cf4641 (patch) | |
| tree | 712feebeea8612b8eb0128f3e09a19eb7f8958e2 /shared-bindings | |
| parent | 8d580933287e712dec9d27cfc0fb988426ff2562 (diff) | |
PulseOut working
Diffstat (limited to 'shared-bindings')
| -rw-r--r-- | shared-bindings/pulseio/PulseOut.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/shared-bindings/pulseio/PulseOut.c b/shared-bindings/pulseio/PulseOut.c index 1c97c37c3..e9834c12a 100644 --- a/shared-bindings/pulseio/PulseOut.c +++ b/shared-bindings/pulseio/PulseOut.c @@ -47,7 +47,7 @@ //| //| .. class:: PulseOut(carrier) //| -//| Create a PulseOut object associated with the given PWM out experience. +//| Create a PulseOut object associated with the given PWMout object. //| //| :param ~pulseio.PWMOut carrier: PWMOut that is set to output on the desired pin. //| @@ -57,9 +57,10 @@ //| import pulseio //| import board //| -//| pwm = pulseio.PWMOut(board.D13, duty_cycle=2 ** 15) +//| # 50% duty cycle at 38kHz. +//| pwm = pulseio.PWMOut(board.D13, frequency=38000, duty_cycle=32768) //| pulse = pulseio.PulseOut(pwm) -//| # on off on off on +//| # on off on off on //| pulses = array.array('H', [65000, 1000, 65000, 65000, 1000]) //| pulse.send(pulses) //| |
