From: Melissa LeBlanc-Williams Date: Sat, 5 Oct 2019 01:11:31 +0000 (-0700) Subject: Fixes issue with SPI on Orange Pi Zero and R1 X-Git-Tag: 2.5.3^2 X-Git-Url: https://git.ayoreis.com/Adafruit_Blinka-hackapet.git/commitdiff_plain/b51263995549e1d3c4d0f6794f361bc564d84504 Fixes issue with SPI on Orange Pi Zero and R1 --- diff --git a/src/adafruit_blinka/microcontroller/generic_linux/spi.py b/src/adafruit_blinka/microcontroller/generic_linux/spi.py index 58a465d..cf4a06c 100755 --- a/src/adafruit_blinka/microcontroller/generic_linux/spi.py +++ b/src/adafruit_blinka/microcontroller/generic_linux/spi.py @@ -37,7 +37,7 @@ class SPI: # does not support setting SPI_NO_CS mode bit (issue #104) if not self.chip.AM33XX and not self.chip.IMX8MX and not self.chip.SAMA5 \ and not self.chip.APQ8016 and not self.chip.T210 and not self.chip.T186 \ - and not self.chip.T194: + and not self.chip.T194 and not self.chip.SUN8I: try: self._spi.no_cs = True # this doesn't work but try anyways except AttributeError: diff --git a/src/busio.py b/src/busio.py index 9003bab..94f8f67 100755 --- a/src/busio.py +++ b/src/busio.py @@ -32,7 +32,7 @@ class I2C(Lockable): break else: raise NotImplementedError( - "No Hardware I2C on (scl,sda)={}\nValid UART ports: {}".format((scl, sda), i2cPorts) + "No Hardware I2C on (scl,sda)={}\nValid I2C ports: {}".format((scl, sda), i2cPorts) ) def deinit(self):