Skip to content

PWM.set_duty_cycle segmentation fault - but only using python3.6 #189

@MrBillium

Description

@MrBillium

New clean install using official stretch 2017-10-10 IoT image which includes Python 3.53. Calling set_duty_cycle throws Segment fault if run using Python3.60 or 3.63 venvs but no error using included Python3 or python 3.53 venv
I have narrowed it down to the following simple code. Any ideas?

Bill

Code file pwmtest.py

`import Adafruit_BBIO.PWM as PWM

pin = 'P8_13'
PWM.start(pin, 50, 2000, 1)
PWM.set_duty_cycle(pin, 30)`

results for venv's
venvs/py360/bin/python /tmp/pwmtest.py - Segment fault
venvs/py363/bin/python /tmp/pwmtest.py - Segment fault
venvs/py353/bin/python /tmp/pwmtest.py - No error

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions