Skip to content

Commit 165df85

Browse files
davidleedomtannewt
andauthored
Update adafruit_74hc595.py
I'm new to Python. Makes sense to me. Co-authored-by: Scott Shawcroft <[email protected]>
1 parent a2d5d7a commit 165df85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_74hc595.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def __init__(self, pin_number, shift_register_74hc595):
4444
ShiftRegister74HC595 instance.
4545
"""
4646
self._pin = pin_number
47-
self._byte_pos = int(self._pin / 8)
47+
self._byte_pos = self._pin // 8
4848
self._byte_pin = self._pin % 8
4949
self._shift_register = shift_register_74hc595
5050

0 commit comments

Comments
 (0)