Skip to content

Commit

Permalink
Merge pull request #96 from ladyada/main
Browse files Browse the repository at this point in the history
allow faster reset
  • Loading branch information
gamblor21 authored Feb 26, 2022
2 parents c3a35db + b347681 commit fd26309
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 fd26309

Please sign in to comment.