From b347681ab6dc7c06e0a196a73053607d937051c9 Mon Sep 17 00:00:00 2001 From: lady ada Date: Fri, 25 Feb 2022 19:25:17 -0500 Subject: [PATCH] allow faster reset --- adafruit_seesaw/seesaw.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/adafruit_seesaw/seesaw.py b/adafruit_seesaw/seesaw.py index 60fbd72..79dffc1 100644 --- a/adafruit_seesaw/seesaw.py +++ b/adafruit_seesaw/seesaw.py @@ -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"""