Skip to content
This repository was archived by the owner on Sep 30, 2019. It is now read-only.

Commit f58d5f1

Browse files
committed
Properly resetting PCA9685
I found writing of this special by in C++ implementation: https://github.com/evankaufman/Adafruit_PCA9685_ServoControl/blob/master/PCA9685.h The specification also mentions this byte: http://www.adafruit.com/datasheets/PCA9685.pdf
1 parent 3968749 commit f58d5f1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Adafruit_PWM_Servo_Driver/Adafruit_PWM_Servo_Driver.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ def __init__(self, address=0x40, debug=False):
3535
def reset(self):
3636
if (self.debug):
3737
print "Reseting PCA9685"
38+
self.i2c.bus.write_byte(self.__MODE1, 0x06)
3839
self.i2c.write8(self.__MODE1, 0x00)
3940

4041
def setPWMFreq(self, freq):

0 commit comments

Comments
 (0)