edlins / libPCA9685

superfast PCA9685 library for Debian platforms. developed on Raspbian on a Pi B+.
MIT License
13 stars 8 forks source link

fix handling of fd and addr #25

Closed edlins closed 6 years ago

edlins commented 6 years ago

PRIORITY: LOW (not a bug, transparent change) STATUS: NOT SCHEDULED (whenever it's convenient)

All messed up. Rename lib globals to "_fd" and "_addr" to avoid confusion. Assign their values in _openI2C(). Use "_fd" and "_addr" throughout.