File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 33
33
/* !
34
34
* @brief Instantiates a new PCA9685 PWM driver chip with the I2C address on a
35
35
* TwoWire interface
36
+ * @param addr The 7-bit I2C address to locate this chip, default is 0x40
36
37
* @param i2c A pointer to a 'Wire' compatible object that we'll use to
37
38
* communicate with
38
- * @param addr The 7-bit I2C address to locate this chip, default is 0x40
39
39
*/
40
- Adafruit_PWMServoDriver::Adafruit_PWMServoDriver (TwoWire *i2c, uint8_t addr ) {
40
+ Adafruit_PWMServoDriver::Adafruit_PWMServoDriver (uint8_t addr, TwoWire *i2c ) {
41
41
_i2c = i2c;
42
42
_i2caddr = addr;
43
43
}
Original file line number Diff line number Diff line change 48
48
*/
49
49
class Adafruit_PWMServoDriver {
50
50
public:
51
- Adafruit_PWMServoDriver (TwoWire *I2C = &Wire, uint8_t addr = 0x40 );
51
+ Adafruit_PWMServoDriver (uint8_t addr = 0x40 , TwoWire *I2C = &Wire );
52
52
void begin (uint8_t prescale = 0 );
53
53
void reset ();
54
54
void sleep ();
You can’t perform that action at this time.
0 commit comments