xtacocorex / CHIP_IO

A CHIP IO library for Python: IO+PWM+SPWM+ADC+Utilities
MIT License
272 stars 60 forks source link

Merge in 2 PWM functions from streamnsight #46

Closed xtacocorex closed 7 years ago

xtacocorex commented 7 years ago

Merge in @streamnsight's 2 functions from his fork: https://github.com/streamnsight/CHIP_IO/commit/51a8663ba4e706305940246cab05f698c3fca631

(Yes, I was totally creeping on the CHIP_IO forks since I noticed the fork number increased)

xtacocorex commented 7 years ago

@streamnsight I started copying over your 2 PWM functions. I noticed that in pwm_set_pulse_width_ns() the line to actually set the duty cycle as the pulse width doesn't have a ;. Is your code complete or just stubbed out?

In looking at pwm_set_period_ns(), that one seems good to go.

xtacocorex commented 7 years ago

Definitely partially implemented. I think I got it squared away though.

streamnsight commented 7 years ago

ah, yeah sorry. i had started but since it didn't work for me, I had put it on hold...

xtacocorex commented 7 years ago

Well I think I got stuff hashed out, code is pushed to master if you wanted to try it out. I haven't tested it since my dev CHIP is downstairs and I'm remoted into it working on the code.