Skip to content

Commit 8afe343

Browse files
committed
Wire.pins() removed, deprecated
Wire.pins() is deprecated for ESP8266. Defaults for SDA/SCL are pins 4 and 5.
1 parent ba8cdbc commit 8afe343

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

examples/servo/servo.pde

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,6 @@ void setup() {
3838
Serial.begin(9600);
3939
Serial.println("16 channel Servo test!");
4040

41-
#ifdef ESP8266
42-
Wire.pins(2, 14); // ESP8266 can use any two pins, such as SDA to #2 and SCL to #14
43-
#endif
44-
4541
pwm.begin();
4642

4743
pwm.setPWMFreq(60); // Analog servos run at ~60 Hz updates

0 commit comments

Comments
 (0)