vsergeev / python-periphery

A pure Python 2/3 library for peripheral I/O (GPIO, LED, PWM, SPI, I2C, MMIO, Serial) in Linux.
MIT License
519 stars 139 forks source link

Fix the PWM module that reversed the channel and pin parameter #25

Closed CharlesCCC closed 5 years ago

CharlesCCC commented 5 years ago

Not sure how it ever worked at first place. I spent hours doing research finally was able to figure this part out by looking at the snippet code provided by @scottellis

https://github.com/scottellis/pwmpy