Skip to content

Commit 48236ce

Browse files
committed
Fixed formatting to comply with pylint
1 parent c347623 commit 48236ce

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

adafruit_pca9685.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,8 @@ def frequency(self, freq):
160160
self.prescale_reg = prescale # Prescale
161161
self.mode1_reg = old_mode # Mode 1
162162
time.sleep(0.005)
163-
self.mode1_reg = old_mode | 0xa0 # Mode 1, autoincrement on, fix to stop pca9685 from accepting commands at all addresses
163+
# Mode 1, autoincrement on, fix to stop pca9685 from accepting commands at all addresses
164+
self.mode1_reg = old_mode | 0xa0
164165

165166
def __enter__(self):
166167
return self
@@ -170,4 +171,4 @@ def __exit__(self, exception_type, exception_value, traceback):
170171

171172
def deinit(self):
172173
"""Stop using the pca9685."""
173-
self.reset()
174+
self.reset()

0 commit comments

Comments
 (0)