Skip to content

Commit

Permalink
allow faster reset
Browse files Browse the repository at this point in the history
  • Loading branch information
ladyada committed Feb 26, 2022
1 parent c3a35db commit b347681
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions adafruit_seesaw/seesaw.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,10 +171,10 @@ def __init__(self, i2c_bus, addr=0x49, drdy=None, reset=True):
self.pin_mapping = ATtiny8x7_Pinmap
# pylint: enable=import-outside-toplevel

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

def get_options(self):
"""Retrieve the 'options' word from the SeeSaw board"""
Expand Down

0 comments on commit b347681

Please sign in to comment.