Skip to content

Commit 6c1e5b3

Browse files
authored
Merge pull request #59 from hoffmannjan/master
updated examples
2 parents a05cbea + da45bfc commit 6c1e5b3

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

examples/gpiotest/gpiotest.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Adafruit_PWMServoDriver pwm = Adafruit_PWMServoDriver();
2424
// you can also call it with a different address you want
2525
//Adafruit_PWMServoDriver pwm = Adafruit_PWMServoDriver(0x41);
2626
// you can also call it with a different address and I2C interface
27-
//Adafruit_PWMServoDriver pwm = Adafruit_PWMServoDriver(&Wire, 0x40);
27+
//Adafruit_PWMServoDriver pwm = Adafruit_PWMServoDriver(0x40, &Wire);
2828

2929
void setup() {
3030
Serial.begin(9600);

examples/pwmtest/pwmtest.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Adafruit_PWMServoDriver pwm = Adafruit_PWMServoDriver();
2424
// you can also call it with a different address you want
2525
//Adafruit_PWMServoDriver pwm = Adafruit_PWMServoDriver(0x41);
2626
// you can also call it with a different address and I2C interface
27-
//Adafruit_PWMServoDriver pwm = Adafruit_PWMServoDriver(&Wire, 0x40);
27+
//Adafruit_PWMServoDriver pwm = Adafruit_PWMServoDriver(0x40, &Wire);
2828

2929
void setup() {
3030
Serial.begin(9600);

examples/servo/servo.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Adafruit_PWMServoDriver pwm = Adafruit_PWMServoDriver();
2525
// you can also call it with a different address you want
2626
//Adafruit_PWMServoDriver pwm = Adafruit_PWMServoDriver(0x41);
2727
// you can also call it with a different address and I2C interface
28-
//Adafruit_PWMServoDriver pwm = Adafruit_PWMServoDriver(&Wire, 0x40);
28+
//Adafruit_PWMServoDriver pwm = Adafruit_PWMServoDriver(0x40, &Wire);
2929

3030
// Depending on your servo make, the pulse width min and max may vary, you
3131
// want these to be as small/large as possible without hitting the hard stop

0 commit comments

Comments
 (0)