PCA9685 Servo Code

I’ve uploaded a Linux PCA9685 library with a servo motor example in C++ to my github repo. I don’t quite remember where the library came. But the servo_example.cpp is mine. :slight_smile: It is pretty simple code. The code compiles fine and runs on a Raspberry Pi 3. It compiles fine under Fedora 25, too.

https://github.com/chaoticmachinery/pca9685

To install:

  1. tar zxvf pca9685.tar.gz
  2. cd pca9685
  3. make
  4. cp libPCA9685.so.0.1 /usr/local/lib
  5. cd /usr/local/lib
  6. ln -s libPCA9685.so.0.1 libPCA9685.so.0
  7. ln -s libPCA9685.so.0.1 libPCA9685.so
  8. make sure /usr/local/lib is in /etc/ld.so.conf
  9. ldconfig
  10. cd back to pca9685 directory
  11. To make the servo example: ./make_servo_example.sh

There is code in there for LED controls. I haven’t tested it.

K Murphy