Skip to content

Commit 839a8d3

Browse files
committed
blacken
1 parent b083f15 commit 839a8d3

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

adafruit_seesaw/seesaw.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,18 +166,19 @@ def __init__(self, i2c_bus, addr=0x49, drdy=None, reset=True):
166166
self.pin_mapping = MM1_Pinmap
167167
elif self.chip_id == _SAMD09_HW_ID_CODE:
168168
from adafruit_seesaw.samd09 import SAMD09_Pinmap
169+
169170
self.pin_mapping = SAMD09_Pinmap
170171
elif self.chip_id == _ATTINY8X7_HW_ID_CODE:
171172
from adafruit_seesaw.attiny8x7 import ATtiny8x7_Pinmap
172-
self.pin_mapping = ATtiny8x7_Pinmap
173+
174+
self.pin_mapping = ATtiny8x7_Pinmap
173175
# pylint: enable=import-outside-toplevel
174176

175177
def sw_reset(self):
176178
"""Trigger a software reset of the SeeSaw chip"""
177179
self.write8(_STATUS_BASE, _STATUS_SWRST, 0xFF)
178180
time.sleep(0.500)
179181

180-
181182
def get_options(self):
182183
"""Retrieve the 'options' word from the SeeSaw board"""
183184
buf = bytearray(4)
@@ -352,7 +353,7 @@ def analog_write(self, pin, value):
352353
offset = pin
353354
elif self.chip_id == _SAMD09_HW_ID_CODE:
354355
offset = self.pin_mapping.pwm_pins.index(pin)
355-
356+
356357
if self.pin_mapping.pwm_width == 16:
357358
cmd = bytearray([offset, (value >> 8), value & 0xFF])
358359
else:

0 commit comments

Comments
 (0)