adafruit / adafruit/adafruit-beaglebone-io-python

PWM test code doesn't work. "Runtime Error: unknowm error"

Open
#354 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
479
Forks
214
PR merge metrics
No merged PRs in 30d

Description

I wrote a few lines of code from the example https://learn.adafruit.com/setting-up-io-python-library-on-beaglebone-black/pwm

and I got a runtime error when I ran it. See attached pictures for reference.

I named the PWM pin "P9_14" and it should work according to the example but doesn't. Any help is appriciated.

By the way I am using a sancloud
![20210805_130243_HDR](https://user-images.githubusercontent.com/83233901/128392793-165e4565-10bb-430c-9794-b1f44af2e684.jpg)
![20210805_130146](https://user-images.githubusercontent.com/83233901/128392795-811ef2b3-6cab-43d2-8eda-756bf559c26d.jpg)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the linked Adafruit PWM example and compare its use of pin P9_14 with the code shown in the attached pictures. Reproduce the runtime error on the reported SanCloud hardware; the issue is resolved when the cause of the unknown runtime error and a working PWM setup are documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
embedded-iot
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.