Skip to content

Commit 4d92bf1

Browse files
Fixed: PWM servo driver did not reset properly during initialization.
1 parent fa0a792 commit 4d92bf1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Adafruit_PWM_Servo_Driver/Adafruit_PWM_Servo_Driver.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def __init__(self, address=0x40, debug=False):
3232
self.debug = debug
3333
if (self.debug):
3434
print "Reseting PCA9685"
35-
self.i2c.write8(self.__MODE1, 0x00)
35+
self.i2c.bus.write_byte(0x00, 0x06)
3636

3737
def setPWMFreq(self, freq):
3838
"Sets the PWM frequency"

0 commit comments

Comments
 (0)