node.js /i2c control for the Adafruit PWM servo driver
Want to see pretty graphs? Log in now!
npm install adafruit-i2c-pwm-driver
|1||downloads in the last day|
|8||downloads in the last week|
|15||downloads in the last month|
|Last Published By|
|Version||0.0.2 last updated 6 months ago|
|Keywords||raspberry, pi, adafruit, i2c, pwm, servo|
|Dependencies||underscore, coffee-script, i2c, sleep|
Adafruit I2C PWM Driver
Node.js implementation for the Adafruit 16-Channel 12-bit PWM/Servo Driver http://www.adafruit.com/products/815
PwmDriver = require('adafruit-i2c-pwm') pwm = new PwmDriver 0x40 '/dev/i2c-1'
To configure I2c on your Raspberry-pi / Beaglebone please see : https://npmjs.org/package/i2c
Setting up a new PwmDriver
- address: Address of the i2c panel, e.g. 0x20
- device: Device name, e.g. '/dev/i2c-1' (defaults to /dev/i2c-1)
- debug: flag used to display debug messages
Based on the Adafruit's Raspberry-Pi Python Code Library
Here is a growing collection of libraries and example python scripts for controlling a variety of Adafruit electronics with a Raspberry Pi
Adafruit invests time and resources providing this open source code, please support Adafruit and open-source hardware by purchasing products from Adafruit!
Written by Limor Fried, Kevin Townsend and Mikey Sklar for Adafruit Industries. BSD license, all text above must be included in any redistribution
To download, we suggest logging into your Pi with Internet accessibility and typing: git clone https://github.com/adafruit/Adafruit-Raspberry-Pi-Python-Code.git