Closed brettcvz closed 7 years ago
I did some testing to make sure this wouldn't happen. I know how to fix it.
👍 thanks for the fast response. I think just wrapping it in if
clause to skip the code if pud=PUD_OFF should do the trick.
It's an error in the logic, I shouldn't throw an exception if the pin can't handle PUD setting. Luckily I was working on adding PWM and SoftPWM to my CHIP REST API, so I have all the pages open.
Should be good to go now! I also pushed to pypi if you installed it via pip.
Thanks! Works great.
Run
GPIO.setup("XIO-P0", GPIO.IN)
, get:The problem is at https://github.com/xtacocorex/CHIP_IO/commit/2b23e2d1654b0febaef9c7d5ac61feb5f2da823a#diff-6021bb287e36c7d509f9435891dba0beR190
I was really surprised by this because my code was working last night and then broke just now when I re-cloned and re-built this library. I'll see if I can get a fix in soon, but wanted to flag this ASAP.