Skip to content

Commit 60c00ea

Browse files
committed
handclang
1 parent dd088c4 commit 60c00ea

File tree

1 file changed

+9
-18
lines changed

1 file changed

+9
-18
lines changed

Adafruit_PWMServoDriver.h

Lines changed: 9 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -33,23 +33,15 @@
3333
#define PCA9685_SUBADR2 0x03 /**< I2C-bus subaddress 2 */
3434
#define PCA9685_SUBADR3 0x04 /**< I2C-bus subaddress 3 */
3535
#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 */
4440
// 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 */
5345
#define PCA9685_PRESCALE 0xFE /**< Prescaler for PWM output frequency */
5446
#define PCA9685_TESTMODE 0xFF /**< defines the test mode to be entered */
5547

@@ -71,8 +63,7 @@
7163
#define MODE2_INVRT 0x10 /**< Output logic state inverted */
7264

7365
#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 */
7667

7768
#define PCA9685_PRESCALE_MIN 3 /**< minimum prescale value */
7869
#define PCA9685_PRESCALE_MAX 255 /**< maximum prescale value */

0 commit comments

Comments
 (0)