www.adeept.com
60
Now you’ve already enabled I2C, move on to enable Camera.
sudo raspi-config
Click through:
5 Interfacing Options
->
P1 Camera
->
Yes
->
OK
->
Finish
->
Yes
Reboot the Raspberry Pi. If it does not reboot automatically, type in the following
command:
reboot
Then the I2C and Camera module are both enabled.
After the Raspberry Pi is rebooted, type in the following command to check that the
module has been enabled:
lsmod | grep i2c
If the following contents are shown, it indicates the module is enabled successfully.
6.Install I2C-Tools
Install I2C-Tools to check whether the external devices are connected successfully as well
as the address of the devices. Type in the command to install:
sudo apt-get install i2c-tools
Install the Python drive program for PCA9685:
sudo pip3 install adafruit-pca9685
To install the library from source, so that you can use the PCA9685 PWM servo/LED
controller with a Raspberry Pi.
Look for more information and example at its homepage: