X-Git-Url: https://git.ayoreis.com/Adafruit_Blinka-hackapet.git/blobdiff_plain/a322e55fdbdd05eb12a9d4cd928811a2a61bb99c..cbaee77564e37047937a9c642d13f20b53821845:/src/adafruit_blinka/microcontroller/generic_linux/spi.py diff --git a/src/adafruit_blinka/microcontroller/generic_linux/spi.py b/src/adafruit_blinka/microcontroller/generic_linux/spi.py index 58a465d..a93c46b 100755 --- a/src/adafruit_blinka/microcontroller/generic_linux/spi.py +++ b/src/adafruit_blinka/microcontroller/generic_linux/spi.py @@ -37,12 +37,16 @@ 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: pass + @property + def frequency(self): + return self.baudrate + def write(self, buf, start=0, end=None): if not buf: return