X-Git-Url: https://git.ayoreis.com/hackapet/Adafruit_Blinka.git/blobdiff_plain/a052cf3c615a2aedb6598a1c4fa93f72ea6b6ab0..bdb52020b6f11c8511c2a6d5e625b479f0eca32b:/src/busio.py diff --git a/src/busio.py b/src/busio.py index 458f574..e3770a4 100644 --- a/src/busio.py +++ b/src/busio.py @@ -29,6 +29,8 @@ class I2C(Lockable): """ Busio I2C Class for CircuitPython Compatibility. Used for both MicroPython and Linux. + + NOTE: Frequency has no effect on Linux systems. The argument is only there for compatibility. """ def __init__(self, scl, sda, frequency=100000): @@ -323,7 +325,9 @@ class SPI(Lockable): self._pins = (clock, clock, clock) # will determine MOSI/MISO from clock return if detector.board.kb2040_u2if: - from adafruit_blinka.microcontroller.rp2040_u2if.spi import SPI_KB2040 as _SPI + from adafruit_blinka.microcontroller.rp2040_u2if.spi import ( + SPI_KB2040 as _SPI, + ) self._spi = _SPI(clock) # this is really all that's needed self._pins = (clock, clock, clock) # will determine MOSI/MISO from clock