From b51263995549e1d3c4d0f6794f361bc564d84504 Mon Sep 17 00:00:00 2001 From: Melissa LeBlanc-Williams Date: Fri, 4 Oct 2019 18:11:31 -0700 Subject: [PATCH] Fixes issue with SPI on Orange Pi Zero and R1 --- src/adafruit_blinka/microcontroller/generic_linux/spi.py | 2 +- src/busio.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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): -- 2.49.0