|
33 | 33 | #define PCA9685_SUBADR2 0x03 /**< I2C-bus subaddress 2 */
|
34 | 34 | #define PCA9685_SUBADR3 0x04 /**< I2C-bus subaddress 3 */
|
35 | 35 | #define PCA9685_ALLCALLADR 0x05 /**< LED All Call I2C-bus address */
|
36 |
| -#define PCA9685_LED0_ON_L 0x06 /**< LED0 output and brightness control byte 0 \ |
37 |
| - */ |
38 |
| -#define PCA9685_LED0_ON_H 0x07 /**< LED0 output and brightness control byte 1 \ |
39 |
| - */ |
40 |
| -#define PCA9685_LED0_OFF_L \ |
41 |
| - 0x08 /**< LED0 output and brightness control byte 2 */ |
42 |
| -#define PCA9685_LED0_OFF_H \ |
43 |
| - 0x09 /**< LED0 output and brightness control byte 3 */ |
| 36 | +#define PCA9685_LED0_ON_L 0x06 /**< LED0 output & brightness control byte 0 */ |
| 37 | +#define PCA9685_LED0_ON_H 0x07 /**< LED0 output & brightness control byte 1 */ |
| 38 | +#define PCA9685_LED0_OFF_L 0x08 /**< LED0 output & brightness control byte 2 */ |
| 39 | +#define PCA9685_LED0_OFF_H 0x09 /**< LED0 output & brightness control byte 3 */ |
44 | 40 | // etc all 16: LED15_OFF_H 0x45
|
45 |
| -#define PCA9685_ALLLED_ON_L 0xFA /**< load all the LEDn_ON registers, byte 0 \ |
46 |
| - */ |
47 |
| -#define PCA9685_ALLLED_ON_H 0xFB /**< load all the LEDn_ON registers, byte 1 \ |
48 |
| - */ |
49 |
| -#define PCA9685_ALLLED_OFF_L \ |
50 |
| - 0xFC /**< load all the LEDn_OFF registers, byte 0 */ |
51 |
| -#define PCA9685_ALLLED_OFF_H \ |
52 |
| - 0xFD /**< load all the LEDn_OFF registers, byte 1 */ |
| 41 | +#define PCA9685_ALLLED_ON_L 0xFA /**< load all the LEDn_ON registers, low */ |
| 42 | +#define PCA9685_ALLLED_ON_H 0xFB /**< load all the LEDn_ON registers, high */ |
| 43 | +#define PCA9685_ALLLED_OFF_L 0xFC /**< load all the LEDn_OFF registers, low */ |
| 44 | +#define PCA9685_ALLLED_OFF_H 0xFD /**< load all the LEDn_OFF registers, high */ |
53 | 45 | #define PCA9685_PRESCALE 0xFE /**< Prescaler for PWM output frequency */
|
54 | 46 | #define PCA9685_TESTMODE 0xFF /**< defines the test mode to be entered */
|
55 | 47 |
|
|
71 | 63 | #define MODE2_INVRT 0x10 /**< Output logic state inverted */
|
72 | 64 |
|
73 | 65 | #define PCA9685_I2C_ADDRESS 0x40 /**< Default PCA9685 I2C Slave Address */
|
74 |
| -#define FREQUENCY_OSCILLATOR 25000000 /**< Oscillator frequency in datasheet \ |
75 |
| - */ |
| 66 | +#define FREQUENCY_OSCILLATOR 25000000 /**< Int. osc. frequency in datasheet */ |
76 | 67 |
|
77 | 68 | #define PCA9685_PRESCALE_MIN 3 /**< minimum prescale value */
|
78 | 69 | #define PCA9685_PRESCALE_MAX 255 /**< maximum prescale value */
|
|
0 commit comments