Skip to content

Commit

Permalink
change bytearray to WriteableBuffer per review comment
Browse files Browse the repository at this point in the history
  • Loading branch information
tcfranks committed Sep 29, 2022
1 parent 755d8cd commit fb6071e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion adafruit_l3gd20.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
from typing import Tuple
from digitalio import DigitalInOut
from busio import I2C, SPI
from circuitpython_typing import WriteableBuffer
except ImportError:
pass

Expand Down Expand Up @@ -358,7 +359,7 @@ def read_register(self, register: int) -> int:
# print("$%02X => %s" % (register, [hex(i) for i in self._spi_bytearray1]))
return self._spi_bytearray1[0]

def read_bytes(self, register: int, buffer: bytearray) -> None:
def read_bytes(self, register: int, buffer: WriteableBuffer) -> None:
"""
Low level register stream reading over SPI, returns a list of values
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@

Adafruit-Blinka
adafruit-circuitpython-register
adafruit-circuitpython-typing

0 comments on commit fb6071e

Please sign in to comment.