From 6ce4350bb8b90ab2b94d0c8fd05f9df27a2b9975 Mon Sep 17 00:00:00 2001 From: Andy Date: Mon, 30 Nov 2020 17:16:30 -0500 Subject: [PATCH 1/3] Update adafruit_bitbangio.py --- adafruit_bitbangio.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/adafruit_bitbangio.py b/adafruit_bitbangio.py index e2741e7..8f19f3b 100644 --- a/adafruit_bitbangio.py +++ b/adafruit_bitbangio.py @@ -121,12 +121,12 @@ def scan(self): found.append(address) return found - def writeto(self, address, buffer, *, start=0, end=None, stop=True): + def writeto(self, address, buffer, *, start=0, end=None): """Write data from the buffer to an address""" if end is None: end = len(buffer) if self._check_lock(): - self._write(address, buffer[start:end], stop) + self._write(address, buffer[start:end], True) def readfrom_into(self, address, buffer, *, start=0, end=None): """Read data from an address and into the buffer""" From 48de69dfcaaee05f37f65554cf93adf0733cca83 Mon Sep 17 00:00:00 2001 From: Andy Date: Mon, 30 Nov 2020 17:24:56 -0500 Subject: [PATCH 2/3] removed another stop= --- adafruit_bitbangio.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adafruit_bitbangio.py b/adafruit_bitbangio.py index 8f19f3b..6113eaa 100644 --- a/adafruit_bitbangio.py +++ b/adafruit_bitbangio.py @@ -158,7 +158,7 @@ def writeto_then_readfrom( if in_end is None: in_end = len(buffer_in) if self._check_lock(): - self.writeto(address, buffer_out, start=out_start, end=out_end, stop=stop) + self.writeto(address, buffer_out, start=out_start, end=out_end) self.readfrom_into(address, buffer_in, start=in_start, end=in_end) def _scl_low(self): From e2ac237ab66a6ef22f982957431850ba2c27a4e5 Mon Sep 17 00:00:00 2001 From: Andy Date: Mon, 30 Nov 2020 17:36:59 -0500 Subject: [PATCH 3/3] removed stop parameter from writeto_then_readfrom --- adafruit_bitbangio.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/adafruit_bitbangio.py b/adafruit_bitbangio.py index 6113eaa..6f27e05 100644 --- a/adafruit_bitbangio.py +++ b/adafruit_bitbangio.py @@ -147,8 +147,7 @@ def writeto_then_readfrom( out_start=0, out_end=None, in_start=0, - in_end=None, - stop=True + in_end=None ): """Write data from buffer_out to an address and then read data from an address and into buffer_in