X-Git-Url: https://git.ayoreis.com/hackapet/Adafruit_Blinka.git/blobdiff_plain/644968a5e7aa007fd873fb8f9a036a1d3139a14d..bdd86c7e4ff0b579f69965f9ff0e5b6bfc973f95:/src/busio.py diff --git a/src/busio.py b/src/busio.py index 17e6c28..21e0446 100755 --- a/src/busio.py +++ b/src/busio.py @@ -127,7 +127,7 @@ class I2C(Lockable): in_end=None, stop=False ): - """"Write to a device at specified address from a buffer then read + """ "Write to a device at specified address from a buffer then read from a device at specified address into a buffer """ return self._i2c.writeto_then_readfrom( @@ -252,7 +252,12 @@ class SPI(Lockable): elif detector.board.greatfet_one: from adafruit_blinka.microcontroller.nxp_lpc4330.spi import SPI as _SPI from adafruit_blinka.microcontroller.nxp_lpc4330.pin import Pin - elif board_id in (ap_board.PINE64, ap_board.PINEBOOK, ap_board.PINEPHONE): + elif board_id in ( + ap_board.PINE64, + ap_board.PINEBOOK, + ap_board.PINEPHONE, + ap_board.SOPINE, + ): from adafruit_blinka.microcontroller.allwinner.a64.pin import Pin from adafruit_blinka.microcontroller.generic_linux.spi import SPI as _SPI elif board_id == ap_board.CLOCKWORK_CPI3: @@ -293,7 +298,7 @@ class SPI(Lockable): except AttributeError: raise NotImplementedError( "Frequency attribute not implemented for this platform" - ) + ) from AttributeError def write(self, buf, start=0, end=None): """Write to the SPI device"""