Skip to content

removed stop key word #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 12, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ Installing from PyPI

.. code-block:: shell

pip3 install sparkfun-circuitpython-qwiictwist
pip install git+https://github.com/FAR-Lab/Sparkfun_CircuitPython_QwiicTwist.git

To install system-wide (this may be required in some cases):

Expand Down
4 changes: 2 additions & 2 deletions sparkfun_qwiictwist.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ def change_address(self, new_address):
def _read_register8(self, addr):
# Read and return a byte from the specified 8-bit register address.
with self._device as device:
device.write(bytes([addr & 0xFF]), stop=False)
device.write(bytes([addr & 0xFF]))
result = bytearray(1)
device.readinto(result)
if self._debug:
Expand All @@ -360,7 +360,7 @@ def _write_register8(self, addr, value):
def _read_register16(self, addr):
# Read and return a 16-bit value from the specified 8-bit register address.
with self._device as device:
device.write(bytes([addr & 0xFF]), stop=False)
device.write(bytes([addr & 0xFF]))
result = bytearray(2)
device.readinto(result)
if self._debug:
Expand Down