Skip to content

Commit da650d2

Browse files
davidleedomtannewt
andauthored
Update adafruit_74hc595.py
I didn't really understand what this was doing in the original code, but I thought I'd just keep it. Co-authored-by: Scott Shawcroft <[email protected]>
1 parent 90f55a5 commit da650d2

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

adafruit_74hc595.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,7 @@ def gpio(self):
132132

133133
@gpio.setter
134134
def gpio(self, val):
135-
136-
for x in range(0, self._number_of_shift_registers - 1):
137-
self._gpio[x] = val[x] & 0xFF
135+
self._gpio = val
138136

139137
with self._device as spi:
140138
# pylint: disable=no-member

0 commit comments

Comments
 (0)