adafruit / Adafruit-Raspberry-Pi-Python-Code

Adafruit library code for Raspberry Pi
1.43k stars 686 forks source link

Fix bug in config with pin values < 8 #110

Closed cymplecy closed 5 years ago

cymplecy commented 9 years ago

I think original code used to truncate the self.direction variable down to 8bits when a pin < 8 mode was changed. The change keeps the upper 8 bits unchanged when pin < 8 and lower bits unchanged when pin >=8 My change is very explicit and could be made more pythonic :)

ladyada commented 5 years ago

Thank you for the Pull Request! This library has been deprecated in favor of our python3 Blinka library. We have replaced all of the libraries that use this repo with CircuitPython libraries that are Python3 compatible, and support a wide variety of single board/linux computers!

Visit https://circuitpython.org/blinka for more information

CircuitPython has support for almost 200 different drivers, and a as well as FT232H support for Mac/Win/Linux!