Library for interfacing with the NXP PCA9685 PWM controller over an I2C connection. Designed with the Adafruit breakout board (of the same name) in mind.
Dependents: Hexapod_Library main_robot_gant_v22
Documentation is lacking - not currently ready for public use, sorry.
definitions.h
- Committer:
- el13cj
- Date:
- 2016-04-05
- Revision:
- 0:aa965d6b1f8f
- Child:
- 1:9d6633a308ba
File content as of revision 0:aa965d6b1f8f:
#ifndef PCA9685_LIBRARY_DEFINITIONS_H #define PCA9685_LIBRARY_DEFINITIONS_H #define ADDR 0x80 #define MODE1 0x0 #define MODE2 0x1 #define PRESCALE 0xFE #define LED0_ON_L 0x6 #define LED0_ON_H 0x7 #define LED0_OFF_L 0x8 #define LED0_OFF_H 0x9 #define ALLLED_ON_L 0xFA #define ALLLED_ON_H 0xFB #define ALLLED_OFF_L 0xFC #define ALLLED_OFF_H 0xFD #define OSC_CLOCK 25e6 #endif