edlins / libPCA9685

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

allow setting all mode1 and mode2 options #24

Closed edlins closed 6 years ago

edlins commented 6 years ago

PCA9685.h: add externs for MODE1 and MODE2, define all bits PCA9685.c: assign hardware defaults to MODE1 and MODE2, in initPWM, always set AUTOINC and always clear SLEEP, EXTCLK, and RESET, and always set MODE2, remove #ifdefs PCA9685demo.c: add opts for configuring MODE1 and MODE2, add -h usage message and -V version number

edlins commented 6 years ago

rebased from changes to develop