Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
voidpp committed Feb 6, 2016
1 parent 830ec89 commit 334d46b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
12 changes: 10 additions & 2 deletions README.md
@@ -1,15 +1,23 @@
[![Build Status](https://travis-ci.org/voidpp/PCA9685-driver.svg?branch=master)](https://travis-ci.org/voidpp/PCA9685-driver)
[![Coverage Status](https://coveralls.io/repos/github/voidpp/PCA9685-driver/badge.svg?branch=master)](https://coveralls.io/github/voidpp/PCA9685-driver?branch=master)

About
-----
Driver for PCA9685 controller. Datasheet: https://www.adafruit.com/datasheets/PCA9685.pdf

Install
-------
```bash
pip install PCA9685-driver
```

Example
-
-------
```py
from pca9685_driver import Device

# 0x40 from i2cdetect -y 1 (1 if Raspberry pi 2)
dev = Device(0x40)
dev = Device(0x40)

# set the duty cycle for LED05 to 50%
dev.set_pwm(5, 2047)
Expand Down
1 change: 0 additions & 1 deletion setup.py
Expand Up @@ -9,7 +9,6 @@
url = 'https://github.com/voidpp/PCA9685-driver.git',
install_requires = [
"smbus-cffi==0.5.1",
"voidpp-tools==1.5.0",
],
include_package_data = True,
packages = find_packages(),
Expand Down

0 comments on commit 334d46b

Please sign in to comment.