graycatlabs / PyBBIO

A Python library for Arduino-style hardware IO support on the Beaglebone
https://github.com/graycatlabs/PyBBIO/wiki
MIT License
251 stars 89 forks source link

pwmFrequency() gives no output #78

Closed n-epifanov closed 8 years ago

n-epifanov commented 9 years ago

Hi,

Just FYI. I don't get output with current implementation. I have a patch, I'll test it once I get hardware and make a pull request.

alexanderhiam commented 9 years ago

What's not working exactly? What code or you using?

pwmFrequency() doesn't enable the PWM output, it just sets the frequency being generated in the PWM module. pwmWrite() (or analogWrite()) has to be called to enable the output.

n-epifanov commented 8 years ago

I see. It seemed to me by the wiki that pwmFrequency() alone is enough, sorry. It would be nice to stress it in the wiki.

alexanderhiam commented 8 years ago

Just updated the wiki, should be more clear now. Thanks!