Skip to content

Commit fd26309

Browse files
authored
Merge pull request #96 from ladyada/main
allow faster reset
2 parents c3a35db + b347681 commit fd26309

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

adafruit_seesaw/seesaw.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,10 +171,10 @@ def __init__(self, i2c_bus, addr=0x49, drdy=None, reset=True):
171171
self.pin_mapping = ATtiny8x7_Pinmap
172172
# pylint: enable=import-outside-toplevel
173173

174-
def sw_reset(self):
174+
def sw_reset(self, post_reset_delay=0.5):
175175
"""Trigger a software reset of the SeeSaw chip"""
176176
self.write8(_STATUS_BASE, _STATUS_SWRST, 0xFF)
177-
time.sleep(0.500)
177+
time.sleep(post_reset_delay)
178178

179179
def get_options(self):
180180
"""Retrieve the 'options' word from the SeeSaw board"""

0 commit comments

Comments
 (0)