You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.
When trying to create a channel pulse greater than 99999 in length a runtime error is returned. The error message also seems to contain errors (the channel number and the max_width). Below is an example that I generated in the python prompt:
import RPIO.PWM as pwm
pwm.setup()
Using hardware: PWM
PW increments: 10us
pwm.init_channel(0, 1000000)
Initializing channel 0...
pwm.add_channel_pulse(0, 18, 0, 99999)
add_channel_pulse: channel=0, gpio=18, start=0, width=99999
init_gpio 18
pwm.add_channel_pulse(0, 18, 0, 100000)
add_channel_pulse: channel=0, gpio=18, start=0, width=100000
Traceback (most recent call last):
File "", line 1, in
File "/usr/local/lib/python2.7/dist-packages/RPIO-0.10.0-py2.7-linux-armv6l.egg/RPIO/PWM/init.py", line 115, in add_channel_pulse
return _PWM.add_channel_pulse(dma_channel, gpio, start, width)
RuntimeError: Error: cannot add pulse to channel 99999: width_start+width exceed max_width of 0
The text was updated successfully, but these errors were encountered:
When trying to create a channel pulse greater than 99999 in length a
runtime error is returned. The error message also seems to contain errors
(the channel number and the max_width). Below is an example that I
generated in the python prompt:
import RPIO.PWM as pwm
pwm.setup()
Using hardware: PWM
PW increments: 10us
pwm.init_channel(0, 1000000)
Initializing channel 0...
pwm.add_channel_pulse(0, 18, 0, 99999)
add_channel_pulse: channel=0, gpio=18, start=0, width=99999
init_gpio 18
pwm.add_channel_pulse(0, 18, 0, 100000)
add_channel_pulse: channel=0, gpio=18, start=0, width=100000
Traceback (most recent call last):
File "", line 1, in
File
"/usr/local/lib/python2.7/dist-packages/RPIO-0.10.0-py2.7-linux-armv6l.egg/RPIO/PWM/ init.py", line 115, in add_channel_pulse
return _PWM.add_channel_pulse(dma_channel, gpio, start, width)
RuntimeError: Error: cannot add pulse to channel 99999: width_start+width
exceed max_width of 0
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/17
.
When trying to create a channel pulse greater than 99999 in length a runtime error is returned. The error message also seems to contain errors (the channel number and the max_width). Below is an example that I generated in the python prompt:
The text was updated successfully, but these errors were encountered: